src/components/mapol.vue
@@ -93,6 +93,7 @@ }); }, methods: { init2DMap() { var vectorLayer = new TileLayer({ source: new XYZ({ @@ -132,7 +133,7 @@ //二维/三维地图切换 changeMapType() { // debugger // this.show2DMap = !this.show2DMap; //二维 if (this.show2DMap) {