|
@@ -22,6 +22,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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
@@ -31,7 +32,7 @@
|
|
import {pjylLine, djldLine,djldLineAll,onePjylPortLocation,oneDjldPortLocation} from '@/utils/map/WaterPassenger'
|
|
import {pjylLine, djldLine,djldLineAll,onePjylPortLocation,oneDjldPortLocation} from '@/utils/map/WaterPassenger'
|
|
import {setBoat, setBoatPath, onLocationBoat, locationBoat} from '@/utils/map/Boat'
|
|
import {setBoat, setBoatPath, onLocationBoat, locationBoat} from '@/utils/map/Boat'
|
|
import {setCenter} from '@/utils/map/Common'
|
|
import {setCenter} from '@/utils/map/Common'
|
|
- import {addLayerByName} from '@/utils/map/Layer'
|
|
|
|
|
|
+ import {addLayerByName,closeAllLayer} from '@/utils/map/Layer'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
name: "MapHome",
|
|
name: "MapHome",
|
|
@@ -104,7 +105,7 @@
|
|
setBoatPath()
|
|
setBoatPath()
|
|
break
|
|
break
|
|
case '船舶定位':
|
|
case '船舶定位':
|
|
- locationBoat('413826096')
|
|
|
|
|
|
+ locationBoat('412374820')
|
|
break
|
|
break
|
|
case '初始视角':
|
|
case '初始视角':
|
|
setCenter();
|
|
setCenter();
|
|
@@ -145,6 +146,9 @@
|
|
this.isShowBmLayer = !this.isShowBmLayer
|
|
this.isShowBmLayer = !this.isShowBmLayer
|
|
addLayerByName('bm',this.isShowBmLayer)
|
|
addLayerByName('bm',this.isShowBmLayer)
|
|
break
|
|
break
|
|
|
|
+ case '关闭全部图层':
|
|
|
|
+ closeAllLayer()
|
|
|
|
+ break
|
|
default:
|
|
default:
|
|
}
|
|
}
|
|
},
|
|
},
|