Commit 70199983 authored by 张博's avatar 张博

更新

parent 4fb030cc
......@@ -31,26 +31,26 @@ class PointsPool extends Component {
this.markerList = {};
}
componentDidMount() {
this.props.subscribe(eventTopics.base3d_view, (topic, data) => {
if (isPointEvent(topic)){
parseMarkers(this, topic, data);
} else if (isLevelFilter(topic)) {
parseLevelFilter(this, topic, data);
}
});
this.props.subscribe('base3d.fromws1.showFireTruckRoute', (topic, data) => {
parseMarkers(this, topic, data);
});
// this.props.subscribe(eventTopics.view3d_init, (topic, data) => {
// const fireTruckMarkerCache = this.markerList['fireCar'];
// if (fireTruckMarkerCache) {
// for (let fireTruck of fireTruckMarkerCache.getValues()) {
// fireTruck.stopMove();
// }
// }
// });
}
// componentDidMount() {
// this.props.subscribe(eventTopics.base3d_view, (topic, data) => {
// if (isPointEvent(topic)){
// parseMarkers(this, topic, data);
// } else if (isLevelFilter(topic)) {
// parseLevelFilter(this, topic, data);
// }
// });
// this.props.subscribe('base3d.fromws1.showFireTruckRoute', (topic, data) => {
// parseMarkers(this, topic, data);
// });
// // this.props.subscribe(eventTopics.view3d_init, (topic, data) => {
// // const fireTruckMarkerCache = this.markerList['fireCar'];
// // if (fireTruckMarkerCache) {
// // for (let fireTruck of fireTruckMarkerCache.getValues()) {
// // fireTruck.stopMove();
// // }
// // }
// // });
// }
onMarkersCreated = (type, { markersCache }) => {
......
......@@ -40,7 +40,6 @@ class AreaLeftTree extends Component {
}
onSearchChange =(e,value) => {
const { treeDataList,treeData } = this.props;
const expandedKeys = treeDataList
.map(item => {
......
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