Commit 70199983 authored by 张博's avatar 张博

更新

parent 4fb030cc
...@@ -31,26 +31,26 @@ class PointsPool extends Component { ...@@ -31,26 +31,26 @@ class PointsPool extends Component {
this.markerList = {}; this.markerList = {};
} }
componentDidMount() { // componentDidMount() {
this.props.subscribe(eventTopics.base3d_view, (topic, data) => { // this.props.subscribe(eventTopics.base3d_view, (topic, data) => {
if (isPointEvent(topic)){ // if (isPointEvent(topic)){
parseMarkers(this, topic, data); // parseMarkers(this, topic, data);
} else if (isLevelFilter(topic)) { // } else if (isLevelFilter(topic)) {
parseLevelFilter(this, topic, data); // 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();
// }
// } // }
// }); // });
} // 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 }) => { onMarkersCreated = (type, { markersCache }) => {
......
...@@ -40,7 +40,6 @@ class AreaLeftTree extends Component { ...@@ -40,7 +40,6 @@ class AreaLeftTree extends Component {
} }
onSearchChange =(e,value) => { onSearchChange =(e,value) => {
const { treeDataList,treeData } = this.props; const { treeDataList,treeData } = this.props;
const expandedKeys = treeDataList const expandedKeys = treeDataList
.map(item => { .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