|
@@ -7,7 +7,7 @@
|
|
|
<script>
|
|
|
import useLayoutStore from '@/store/layout'
|
|
|
import { useMapStore } from '@/store/map.js'
|
|
|
-import { AddYaoganMapLayer, importantAreaPosition } from '@/utils/map/addLayer.js'
|
|
|
+import { AddBaseMapLayer, AddYaoganMapLayer, importantAreaPosition } from '@/utils/map/addLayer.js'
|
|
|
import CityGis from '@/utils/map/CityGis.Bridge.js'
|
|
|
import { myBridge } from '@/utils/map/map.js'
|
|
|
import { onMounted } from 'vue'
|
|
@@ -25,17 +25,17 @@ export default {
|
|
|
}, 2500)
|
|
|
myBridge.bridgeContent = bridge = new CityGis.Bridge({
|
|
|
id: 'i_map',
|
|
|
- // url: 'http://localhost:5173/map-tool-widget/',
|
|
|
+ url: 'http://localhost:5173/map-tool-widget/',
|
|
|
// url: 'https://cimweb.zjw.sh.cegn.cn:2007/map-tool-widget/#/',
|
|
|
// url: 'http://172.16.8.44:9250/map-tool-widget/#/jk_map',
|
|
|
- url: 'http://172.16.8.44:8250/map-tool-widget/#/jk_map',
|
|
|
+ // url: 'http://172.16.8.44:8250/map-tool-widget/#/jk_map',
|
|
|
|
|
|
onReady: function () {
|
|
|
console.log('地图创建完成')
|
|
|
},
|
|
|
})
|
|
|
- AddYaoganMapLayer()
|
|
|
- importantAreaPosition(4190, -5273, 19419, 6, 34)
|
|
|
+ AddBaseMapLayer()
|
|
|
+ importantAreaPosition(2790, -2858, 5019, 2, 34)
|
|
|
bridge.addEventListener((arg) => {
|
|
|
// console.log('map listener:',arg)
|
|
|
switch (arg.action) {
|