瀏覽代碼

优化组件

wulanhaote
hbao 3 年之前
父節點
當前提交
c7c2e23b9f
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      src/components/Map/MapGisDrawing.vue

+ 4
- 2
src/components/Map/MapGisDrawing.vue 查看文件

@@ -237,12 +237,14 @@ export default {
// }); // });
//还原之前图层 //还原之前图层
$("#"+this.drawingResetMap).click(function () { $("#"+this.drawingResetMap).click(function () {
console.log(that.closeMoule);
console.log(that.message);
if(that.closeMoule !=null) { if(that.closeMoule !=null) {
if(this.message.substring(0,1) =="{"){
if(that.message.substring(0,1) =="{"){
map.addLayer(hc_land); map.addLayer(hc_land);
map.removeInteraction(draw); map.removeInteraction(draw);
} }
if(this.message.substring(0,1) =="["){
if(that.message.substring(0,1) =="["){
map.addLayer(hc_landFuther); map.addLayer(hc_landFuther);
map.removeLayer(vector_drawing); map.removeLayer(vector_drawing);
} }


Loading…
取消
儲存