Преглед на файлове

优化地图

wulanhaote
hbao преди 3 години
родител
ревизия
fad40e2356
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      src/components/Map/MapGisDrawing.vue

+ 2
- 2
src/components/Map/MapGisDrawing.vue Целия файл

@@ -193,7 +193,7 @@ export default {
//开始绘制地图 //开始绘制地图
$("#"+this.drawingPolygonMap).click(function () { $("#"+this.drawingPolygonMap).click(function () {
map.removeLayer(hc_land); map.removeLayer(hc_land);
//map.removeLayer(hc_landFuther);
map.removeLayer(hc_landFuther);
map.removeLayer(vector_drawing); map.removeLayer(vector_drawing);
//that.closeMoule = null; //that.closeMoule = null;
map.removeInteraction(draw); map.removeInteraction(draw);
@@ -234,7 +234,7 @@ export default {
$("#"+this.drawingResetMap).click(function () { $("#"+this.drawingResetMap).click(function () {
if(that.closeMoule !=null) { if(that.closeMoule !=null) {
map.removeLayer(vector_drawing); map.removeLayer(vector_drawing);
//map.removeLayer(hc_landFuther);
map.addLayer(hc_landFuther);
map.removeInteraction(draw); map.removeInteraction(draw);
map.addLayer(hc_land); map.addLayer(hc_land);
//map.addLayer(hc_landFuther); //map.addLayer(hc_landFuther);


Зареждане…
Отказ
Запис