|
@@ -15,6 +15,7 @@
|
|
|
<button @click="test('对江轮渡码头')">对江轮渡码头</button>
|
|
|
<button @click="test('浦江游览航线')">浦江游览航线</button>
|
|
|
<button @click="test('对江轮渡航线')">对江轮渡航线</button>
|
|
|
+ <button @click="test('企业定位')">企业定位</button>
|
|
|
<button @click="test('船舶定位')">单船定位</button>
|
|
|
<button @click="test('船舶撒点')">船舶</button>
|
|
|
<button @click="test('码头泊位')">码头泊位</button>
|
|
@@ -42,9 +43,10 @@
|
|
|
<script>
|
|
|
import {initBridge, fullExtent, calculation, clearMap, changeMap, draw} from "@/utils/map/ArcgisUtil"
|
|
|
import {pjylLine, djldLine,djldLineAll,onePjylPortLocation,oneDjldPortLocation} from '@/utils/map/WaterPassenger'
|
|
|
+ import {locationUnit} from '@/utils/map/OperationSupervision'
|
|
|
import {setBoat, setBoatPath, onLocationBoat, locationBoat, boatDriving, drawArea, setMultiBoatHistory, playAreaBoatHistory} from '@/utils/map/Boat'
|
|
|
import {setCenter, setVideoCamera} from '@/utils/map/Common'
|
|
|
- import {addLayerByName,closeAllLayer} from '@/utils/map/Layer'
|
|
|
+ import {addDefaultServer,addLayerByName,closeAllLayer} from '@/utils/map/Layer'
|
|
|
|
|
|
export default {
|
|
|
name: "MapHome",
|
|
@@ -58,6 +60,7 @@
|
|
|
isShowPjylLine:false,
|
|
|
isShowDjldLine:false,
|
|
|
isShowBoat:false,
|
|
|
+ isShowUnit:false,
|
|
|
isShowPortLayer:false,
|
|
|
isShowJjqLayer:false,
|
|
|
isShowDtqLayer:false,
|
|
@@ -72,6 +75,7 @@
|
|
|
mounted(){
|
|
|
//加载地图控件
|
|
|
initBridge();
|
|
|
+ addDefaultServer();
|
|
|
setCenter();
|
|
|
},
|
|
|
methods:{
|
|
@@ -109,6 +113,15 @@
|
|
|
// djldLine('歇宁线',this.isShowDjldLine)
|
|
|
djldLineAll(this.isShowDjldLine)
|
|
|
break
|
|
|
+ case '企业定位':
|
|
|
+ this.isShowUnit = !this.isShowUnit
|
|
|
+ locationUnit({
|
|
|
+ name: '上海东方明珠游乐有限公司',
|
|
|
+ certNumber:'(沪外)港经证(1390)号',
|
|
|
+ mapx: "2360.105499999595",
|
|
|
+ mapy: "794.1387000000105"
|
|
|
+ },this.isShowUnit)
|
|
|
+ break
|
|
|
case '船舶撒点':
|
|
|
this.isShowBoat = !this.isShowBoat
|
|
|
setBoat(this.isShowBoat)
|