井乐禹 2 years ago
parent
commit
70352d9885
  1. 13
      src/views/screenCenter/screenCenter.vue

13
src/views/screenCenter/screenCenter.vue

@ -692,11 +692,12 @@ export default {
this.map.removeSource("pointDimension") this.map.removeSource("pointDimension")
this.map.removeImage("markIcon") this.map.removeImage("markIcon")
} }
this.layersIndex = 1 this.layersIndex = 1;
this.buttonIndex = 0 this.buttonIndex = 0;
this.getPolygonJson(this.shibeiJson) this.getPolygonJson(this.shibeiJson);
this.map.setZoom(12.5) this.map.setZoom(12.5);
this.map.setCenter([120.38140448734, 36.11044959486]) this.map.setCenter([120.38140448734, 36.11044959486]);
this.close();
}, },
selectType(value, label) { selectType(value, label) {
if (value === this.buttonIndex) { if (value === this.buttonIndex) {
@ -714,7 +715,6 @@ export default {
this.makeMarkers(json) this.makeMarkers(json)
}, },
getBoundary(id) { getBoundary(id) {
const ts = Date.now(); const ts = Date.now();
let signConfig = { let signConfig = {
key: '612d304095c50369c3ef06e490f05779eeb8f19ff16566c73aeafafc5fa01970', key: '612d304095c50369c3ef06e490f05779eeb8f19ff16566c73aeafafc5fa01970',
@ -801,7 +801,6 @@ export default {
type: "geojson" /* geojson类型资源 */, type: "geojson" /* geojson类型资源 */,
data: json data: json
}); });
_this.map.addLayer({ _this.map.addLayer({
id: "pointDimension", id: "pointDimension",
type: "symbol" /* symbol类型layer,一般用来绘制点*/, type: "symbol" /* symbol类型layer,一般用来绘制点*/,

Loading…
Cancel
Save