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

Loading…
Cancel
Save