|
@@ -684,10 +684,10 @@ export default {
|
|
|
* 获取当前统计数据情况
|
|
|
*/
|
|
|
getCurrentInfo() {
|
|
|
- let parentDom = $('#mainMapContainer .widget-displaycontrol-mapInfoLook')
|
|
|
+ let parentDom = $('.mainMapContainer .widget-displaycontrol-mapInfoLook')
|
|
|
if (parentDom.length == 0) {
|
|
|
$('#mainMapContainer').append("<div class='widget-displaycontrol-mapInfoLook'></div>")
|
|
|
- parentDom = $('#mainMapContainer .widget-displaycontrol-mapInfoLook')
|
|
|
+ parentDom = $('.mainMapContainer .widget-displaycontrol-mapInfoLook')
|
|
|
}
|
|
|
this.otherDestroy()
|
|
|
this.handler = new Cesium.ScreenSpaceEventHandler(window.viewer.canvas)
|
|
@@ -1162,7 +1162,7 @@ export default {
|
|
|
if (Cesium.defined(this.customDataSourcePercentRoad)) {
|
|
|
this.customDataSourcePercentRoad.entities.removeAll()
|
|
|
}
|
|
|
- let parentDom = $('#mainMapContainer .widget-displaycontrol-mapInfoLook')
|
|
|
+ let parentDom = $('.mainMapContainer .widget-displaycontrol-mapInfoLook')
|
|
|
if (parentDom.length != 0) {
|
|
|
parentDom.remove()
|
|
|
}
|