Commit 02fb2334 authored by baoshuang's avatar baoshuang

xiugai

parent b8510386
...@@ -59,6 +59,15 @@ class PointsPool extends Component { ...@@ -59,6 +59,15 @@ class PointsPool extends Component {
onMarkersCreated = (type, { markersCache }) => { onMarkersCreated = (type, { markersCache }) => {
this.markerList[type] = markersCache; this.markerList[type] = markersCache;
let stagePilot = this.props.stagePilot;
// if(markersCache&&stagePilot) {
// // console.log(this.markerList)
// console.log(markersCache)
// // console.log(this.props)
// markersCache.eachValue(item => {
// item.node._userData = { ...item.extData };
// stagePilot.positionCtl.objects.push(item.node); })
// }
(markersCache || []).forEach(mc => { (markersCache || []).forEach(mc => {
const extData = mc.getExtData(); const extData = mc.getExtData();
if (extData.hasOwnProperty('visible')){ if (extData.hasOwnProperty('visible')){
......
...@@ -1280,7 +1280,7 @@ class View3D extends Component { ...@@ -1280,7 +1280,7 @@ class View3D extends Component {
disabledEdit disabledEdit
defaultLoading={false} defaultLoading={false}
ref={node => (this.a3dRef = node)} ref={node => (this.a3dRef = node)}
baseObjs={objs} baseObjs={{}}
maskContent={ maskContent={
<MaskContent <MaskContent
planStarted={planStarted} planStarted={planStarted}
...@@ -1305,7 +1305,7 @@ class View3D extends Component { ...@@ -1305,7 +1305,7 @@ class View3D extends Component {
positionCtlProps={positionCtlProps} positionCtlProps={positionCtlProps}
> >
{startAsyncLoad && <WorkerObjContent objs={asyncModels} onWorkerMessage={this.onWorkerLoading} enableLoading afterInit={this.onAfterWorkerInit} />} {startAsyncLoad && <WorkerObjContent objs={asyncModels} onWorkerMessage={this.onWorkerLoading} enableLoading afterInit={this.onAfterWorkerInit} />}
<PointsPool markers={markers} updateMarker={this.updateMarker} planStarted={alarmStarted} stagePilot={this.stagePilot} /> {editFlag&&pageType == 'region'?'':<PointsPool markers={markers} updateMarker={this.updateMarker} planStarted={alarmStarted} stagePilot={this.stagePilot} />}
{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} />
{this.renderAreas()} {this.renderAreas()}
......
...@@ -7,6 +7,7 @@ import MarkerIcon from './MarkerIcon'; ...@@ -7,6 +7,7 @@ import MarkerIcon from './MarkerIcon';
import { tirggerTransTopic, tirggerPlanTopic } from './../dataProcessor'; import { tirggerTransTopic, tirggerPlanTopic } from './../dataProcessor';
import FireMarkerIcon from './markers/FireMarkerIcon'; import FireMarkerIcon from './markers/FireMarkerIcon';
import StatisticsMarkerIcon from './markers/StatisticsMarkerIcon' import StatisticsMarkerIcon from './markers/StatisticsMarkerIcon'
import { utils, deepCopy } from 'amos-tool';
export default function markerFactory(WrappedComponent = 'div', options){ export default function markerFactory(WrappedComponent = 'div', options){
const { markerType } = options; const { markerType } = options;
...@@ -79,12 +80,14 @@ export default function markerFactory(WrappedComponent = 'div', options){ ...@@ -79,12 +80,14 @@ export default function markerFactory(WrappedComponent = 'div', options){
} }
render() { render() {
const { markers } = this.props;
const { planStarted } = this.state; const { planStarted } = this.state;
let dialogStyle = { zIndex: 1000 }; let dialogStyle = { zIndex: 1000 };
return ( return (
<WrappedComponent> <WrappedComponent>
<Markers <Markers
{...this.props} {...this.props}
markers={deepCopy(markers)}
events={this.markerEvents} events={this.markerEvents}
render={this.renderMarker} render={this.renderMarker}
/> />
......
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