|
|
@@ -14,7 +14,7 @@
|
|
|
<check-dialog @sendBool="setDetailVisible" v-if="detailsDialogFormVisible" :checkParam="DetailsId"></check-dialog>
|
|
|
|
|
|
<div id="mapView" class="mapView">
|
|
|
- <cesium-map></cesium-map>
|
|
|
+ <cesium-map @afterMapLoad='afterMapLoad'></cesium-map>
|
|
|
<!-- <div
|
|
|
id="any"
|
|
|
ref="any"
|
|
|
@@ -105,8 +105,9 @@
|
|
|
import cesiumMap from '@/views/widgets/cesiumMap.vue'
|
|
|
import popupWindow from '@/views/pipelineDefect/components/popupWindow.vue'
|
|
|
import checkDialog from '@/views/pipelineDefect/components/checkDetails.vue'
|
|
|
-import HandleManage from '../pipelineDefect/common/cesiumEvent'
|
|
|
-
|
|
|
+ import HandleManage from '../pipelineDefect/common/cesiumEvent'
|
|
|
+ import { appconfig } from 'staticPub/config'
|
|
|
+ import CesiumUtil from '../pipelineDefect/common/cesiumUtil'
|
|
|
@Component({
|
|
|
components: {
|
|
|
HalfPanels,
|
|
|
@@ -252,8 +253,16 @@ import HandleManage from '../pipelineDefect/common/cesiumEvent'
|
|
|
// dS.entities.values.forEach(e => pS.entities.remove(e))
|
|
|
}
|
|
|
}
|
|
|
+ afterMapLoad () {
|
|
|
+ }
|
|
|
+
|
|
|
+ setView () {
|
|
|
+ const { viewer } = <any>window
|
|
|
+ let { lon, lat, height } = appconfig.currCenter
|
|
|
+ new CesiumUtil(viewer).setView(CesiumUtil.degrees2Car3(parseFloat(lon), parseFloat(lat), parseFloat(height)))
|
|
|
+ }
|
|
|
setDetailVisible(bool: boolean) {
|
|
|
- console.log('显示弹窗')
|
|
|
+
|
|
|
this.detailsDialogFormVisible = bool
|
|
|
}
|
|
|
setDefectId (id: (string | number)) {
|