浏览代码

地图重置优化

wulanhaote
hbao 3 年前
父节点
当前提交
d58374b6f1
共有 1 个文件被更改,包括 3 次插入5 次删除
  1. +3
    -5
      src/components/Map/MapGisDrawing.vue

+ 3
- 5
src/components/Map/MapGisDrawing.vue 查看文件

@@ -238,15 +238,13 @@ 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(that.message.substring(0,1) =="{"){ if(that.message.substring(0,1) =="{"){
map.addLayer(hc_land);
map.removeInteraction(draw);
map.addLayer(hc_landFuther);
} }
if(that.message.substring(0,1) =="["){ if(that.message.substring(0,1) =="["){
map.addLayer(hc_landFuther);
map.addLayer(hc_land);
map.removeInteraction(draw);
map.removeLayer(vector_drawing); map.removeLayer(vector_drawing);
} }
that.formSubmit(); that.formSubmit();


正在加载...
取消
保存