|
@@ -8,10 +8,9 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import CityGis from '../../unit/map/CityGis.Bridge.js';
|
|
import CityGis from '../../unit/map/CityGis.Bridge.js';
|
|
-import {myBridge} from "../../unit/map/map.js";
|
|
|
|
-import {useMapStore} from "../../store/mapStore.js";
|
|
|
|
|
|
+import {myBridge} from "@/unit/map/map.js";
|
|
import {nextTick,ref,onMounted} from "vue";
|
|
import {nextTick,ref,onMounted} from "vue";
|
|
-import {AddSingleLayer, MapClickByType, SetBackground} from "../../unit/map/addLayer.js";
|
|
|
|
|
|
+import {AddSingleLayer, invokeParams, MapClickByType, SetBackground} from "@/unit/map/addLayer.js";
|
|
let bridge;
|
|
let bridge;
|
|
export default {
|
|
export default {
|
|
name: "Map",
|
|
name: "Map",
|
|
@@ -19,14 +18,48 @@ export default {
|
|
onMounted(()=>{
|
|
onMounted(()=>{
|
|
myBridge.bridgeContent = bridge = new CityGis.Bridge({
|
|
myBridge.bridgeContent = bridge = new CityGis.Bridge({
|
|
id: "i_map",
|
|
id: "i_map",
|
|
- // url: 'https://cimweb.zjw.sh.cegn.cn:2007/VUE-Map-Tool-Widget/#/jk_map?theme=dark&type=3D', //建科发布
|
|
|
|
- url: 'http://localhost:8081/#/jk_map?theme=dark&type=3D',
|
|
|
|
|
|
+ url: 'https://cimweb.zjw.sh.cegn.cn:2007/VUE-Map-Tool-Widget/#/jk_map?theme=dark&type=3D', //建科发布
|
|
|
|
+ // url: 'http://localhost:8081/#/jk_map?theme=dark&type=3D',
|
|
onReady: function () {
|
|
onReady: function () {
|
|
- console.log("地图创建完成")
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
+
|
|
})
|
|
})
|
|
- MapClickByType('show');
|
|
|
|
- AddSingleLayer()
|
|
|
|
|
|
+ debugger
|
|
|
|
+ console.log("地图创建完成")
|
|
|
|
+
|
|
|
|
+ let hmxmxxServiceNo = "D9999990320240701";
|
|
|
|
+ let wdbServiceNo = "D9999990520240701";
|
|
|
|
+ let ydbServiceNo = "D9999990620240701";
|
|
|
|
+
|
|
|
|
+ // 调用 AddSingleLayer 方法
|
|
|
|
+ AddSingleLayer({
|
|
|
|
+ id: 0,
|
|
|
|
+ title: "dynamic",
|
|
|
|
+ visible: true,
|
|
|
|
+ wkid:1,
|
|
|
|
+ // url:"https://cimweb.zjw.sh.cegn.cn:2008/MapServiceProxy/"+hmxmxxToken,
|
|
|
|
+ url:"https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/"+hmxmxxServiceNo,
|
|
|
|
+ type: "动态地图"
|
|
|
|
+ });
|
|
|
|
+ AddSingleLayer({
|
|
|
|
+ id: 0,
|
|
|
|
+ title: "dynamic",
|
|
|
|
+ visible: true,
|
|
|
|
+ wkid:1,
|
|
|
|
+ url:"https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/"+wdbServiceNo,
|
|
|
|
+ type: "动态地图"
|
|
|
|
+ });
|
|
|
|
+ AddSingleLayer({
|
|
|
|
+ id: 0,
|
|
|
|
+ title: "dynamic",
|
|
|
|
+ visible: true,
|
|
|
|
+ wkid:1,
|
|
|
|
+ url:"https://cimweb.zjw.sh.cegn.cn:2008/MapProxyApi/getSceneServer/gxjh_fwjk/"+ydbServiceNo,
|
|
|
|
+ type: "动态地图"
|
|
|
|
+ });
|
|
|
|
+ // 调用 MapClickByType 方法
|
|
|
|
+ MapClickByType(true);
|
|
})
|
|
})
|
|
}
|
|
}
|
|
}
|
|
}
|