|
@@ -3,6 +3,8 @@
|
|
title="室内定位融合"
|
|
title="室内定位融合"
|
|
:visible.sync="centerDialogVisible"
|
|
:visible.sync="centerDialogVisible"
|
|
width="70vw"
|
|
width="70vw"
|
|
|
|
+ @closed="onDialogClose"
|
|
|
|
+ @opened="play"
|
|
center>
|
|
center>
|
|
<div style="width: 100%;height: 70vh;">
|
|
<div style="width: 100%;height: 70vh;">
|
|
<bd-map :loaded="loaded" map-id="room-map" />
|
|
<bd-map :loaded="loaded" map-id="room-map" />
|
|
@@ -48,14 +50,17 @@ export default {
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.play();
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
dayjs,
|
|
dayjs,
|
|
|
|
+ onDialogClose() {
|
|
|
|
+ this.playInterval && clearInterval(this.playInterval);
|
|
|
|
+ },
|
|
loaded(map) {
|
|
loaded(map) {
|
|
const vtLayer = new BDLayers.Lib.Layer.CBTileLayer('blayer_ng_s', {
|
|
const vtLayer = new BDLayers.Lib.Layer.CBTileLayer('blayer_ng_s', {
|
|
url: 'http://bd.xt.wenhq.top:8083/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=bdlayers:bdl_cyy_pingmian&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&Format=image/jpeg&TILECOL={x}&TILEROW={y}',
|
|
url: 'http://bd.xt.wenhq.top:8083/geoserver/gwc/service/wmts?REQUEST=GetTile&SERVICE=WMTS&VERSION=1.0.0&LAYER=bdlayers:bdl_cyy_pingmian&STYLE=&TILEMATRIX=EPSG:900913:{z}&TILEMATRIXSET=EPSG:900913&Format=image/jpeg&TILECOL={x}&TILEROW={y}',
|
|
- maxZoom: 22,
|
|
|
|
|
|
+ maxZoom: 24,
|
|
minZoom: 15,
|
|
minZoom: 15,
|
|
});
|
|
});
|
|
map.addCustomLayers(vtLayer);
|
|
map.addCustomLayers(vtLayer);
|
|
@@ -63,8 +68,7 @@ export default {
|
|
map.addCustomLayers(this.markLayer);
|
|
map.addCustomLayers(this.markLayer);
|
|
this.mapIns = map;
|
|
this.mapIns = map;
|
|
map.setPitch(0);
|
|
map.setPitch(0);
|
|
- map.setZoom(22);
|
|
|
|
- map.setCenter([118.869046506393, 32.0133281708171]);
|
|
|
|
|
|
+ map.setCenter([118.86895,32.01326]);
|
|
},
|
|
},
|
|
show() {
|
|
show() {
|
|
this.centerDialogVisible = true;
|
|
this.centerDialogVisible = true;
|
|
@@ -108,6 +112,10 @@ export default {
|
|
this.locationMarkers[deviceId].moveMarker([longitude, latitude], 2000, false);
|
|
this.locationMarkers[deviceId].moveMarker([longitude, latitude], 2000, false);
|
|
},
|
|
},
|
|
play() {
|
|
play() {
|
|
|
|
+ if (!this.mapIns) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+ this.mapIns.setZoom(22)
|
|
const gps = [
|
|
const gps = [
|
|
[118.869125003231, 32.0132579193923],
|
|
[118.869125003231, 32.0132579193923],
|
|
[118.869114609672, 32.0132582036815],
|
|
[118.869114609672, 32.0132582036815],
|
|
@@ -198,7 +206,6 @@ export default {
|
|
}
|
|
}
|
|
i++;
|
|
i++;
|
|
}, 2000);
|
|
}, 2000);
|
|
-
|
|
|
|
},
|
|
},
|
|
},
|
|
},
|
|
};
|
|
};
|