Commit 9d8b63ee authored by 耿迪迪's avatar 耿迪迪

地图新增 选择问题修改 gengdidi

parent 99401b09
...@@ -495,6 +495,7 @@ class gaodeMap { ...@@ -495,6 +495,7 @@ class gaodeMap {
} }
// 创建一条新的线 // 创建一条新的线
createNewLine() { createNewLine() {
map.remove(this.markerOverlays);
this.mouseTool.polyline({ this.mouseTool.polyline({
// bubbles:false, // bubbles:false,
strokeWeight: 9, strokeWeight: 9,
...@@ -720,8 +721,8 @@ class gaodeMap { ...@@ -720,8 +721,8 @@ class gaodeMap {
that.markerOverlays.push(e.obj); that.markerOverlays.push(e.obj);
} }
if (e.obj && e.obj.getExtData().type == "newLine") { if (e.obj && e.obj.getExtData().type == "newLine") {
console.log("挂上事件"); console.log("挂上事件");
that.newLineAddEvent(e.obj); that.newLineAddEvent(e.obj);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment