Commit 8d5eda4a authored by suhuiguang's avatar suhuiguang

1.增加控制进入建筑内部后 不再显示marKer

parent 9ce53a10
...@@ -142,7 +142,8 @@ class View3D extends Component { ...@@ -142,7 +142,8 @@ class View3D extends Component {
type: 'region', type: 'region',
btnType: 'isOk', btnType: 'isOk',
isback: false isback: false
} },
isOutterView: true //控制进入层级后是否显示marker
}; };
getObjFromNet(view3dFile, (objs, asyncModels) => { getObjFromNet(view3dFile, (objs, asyncModels) => {
...@@ -274,6 +275,7 @@ class View3D extends Component { ...@@ -274,6 +275,7 @@ class View3D extends Component {
this.initModelDisplay(); this.initModelDisplay();
this.outlineFactory.toggleOutline([]);//清除选中 this.outlineFactory.toggleOutline([]);//清除选中
this.lensLevel = LENS_LEVEL.ROOT; this.lensLevel = LENS_LEVEL.ROOT;
this.setState({ isOutterView: true });//恢复marker显示
} }
}); });
}; };
...@@ -1698,7 +1700,8 @@ class View3D extends Component { ...@@ -1698,7 +1700,8 @@ class View3D extends Component {
errorAreaId, errorAreaId,
rightHeight, rightHeight,
treeDataList, treeDataList,
promptData promptData,
isOutterView
} = this.state; } = this.state;
const { dimension, hiddenScreenSaver, editModelChange } = this.props; const { dimension, hiddenScreenSaver, editModelChange } = this.props;
const graphicProps = { const graphicProps = {
...@@ -1792,12 +1795,12 @@ class View3D extends Component { ...@@ -1792,12 +1795,12 @@ class View3D extends Component {
> >
{startAsyncLoad && this.multLoadWorkerObjContent(asyncModels)} {startAsyncLoad && this.multLoadWorkerObjContent(asyncModels)}
{isEditMode && pageType === 'region' ? '' : {isEditMode && pageType === 'region' ? '' :
<PointsPool markers={markers} isEditMode={isEditMode} selectPoints={selectPoints} updateMarker={this.updateMarker} planStarted={alarmStarted} stagePilot={this.stagePilot} positionCtl={this.positionCtl} addMarker={this.addMarker} ref={node => this.pointsPool = node} />} isOutterView && <PointsPool markers={markers} isEditMode={isEditMode} selectPoints={selectPoints} updateMarker={this.updateMarker} planStarted={alarmStarted} stagePilot={this.stagePilot} positionCtl={this.positionCtl} addMarker={this.addMarker} ref={node => this.pointsPool = node} />}
{fireTruckRoute && <FatLine {...lineData.fatLineConf} linePath={JSON.parse(fireTruckRoute)} visible={showFireTruckRoute} />} {fireTruckRoute && <FatLine {...lineData.fatLineConf} linePath={JSON.parse(fireTruckRoute)} visible={showFireTruckRoute} />}
<FlameFire position={firePosition} width={10} height={20} depth={8} sliceSpacing={1} visible={planStarted} /> <FlameFire position={firePosition} width={10} height={20} depth={8} sliceSpacing={1} visible={planStarted} />
{isEditMode && this.renderAreas()} {isEditMode && this.renderAreas()}
{this.renderPolygonRegion(exceptionAreas)} {this.renderPolygonRegion(exceptionAreas)}
{startLoadExceptionArea && <ExceptionArea markers={exceptionMarkers} handleExceptModel={this.handleExceptModel} focusObject={this.focusObject} />} {isOutterView && startLoadExceptionArea && <ExceptionArea markers={exceptionMarkers} handleExceptModel={this.handleExceptModel} focusObject={this.focusObject} />}
</A3DDesigner> </A3DDesigner>
</div> </div>
{ isEditMode && { isEditMode &&
......
...@@ -392,6 +392,7 @@ export const flyToSubView = (instance,obj,LENS_LEVEL) =>{ ...@@ -392,6 +392,7 @@ export const flyToSubView = (instance,obj,LENS_LEVEL) =>{
// 镜头切换 // 镜头切换
fitView && instance.cameraFactory.fitView(fitView);//视角调整为最近视角 fitView && instance.cameraFactory.fitView(fitView);//视角调整为最近视角
instance.lensLevel = LENS_LEVEL.SUB; instance.lensLevel = LENS_LEVEL.SUB;
instance.setState({ isOutterView: false });
} else { } else {
instance.focusObject(obj); instance.focusObject(obj);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment