Commit b61084f2 authored by 黄奎's avatar 黄奎
parents 92a1c719 ccd60ee4
...@@ -323,10 +323,9 @@ export default { ...@@ -323,10 +323,9 @@ export default {
// 更新数据时再标记 // 更新数据时再标记
if(type==2){ if(type==2){
this.addMarker(); //标记 this.addMarker(); //标记
}
this.createLineHandler(); //连线 this.createLineHandler(); //连线
await this.addCountriesMaker(); //标记国家 await this.addCountriesMaker(); //标记国家
}
//this.addDocumentEventListener(); //this.addDocumentEventListener();
}, },
...@@ -827,6 +826,8 @@ export default { ...@@ -827,6 +826,8 @@ export default {
} }
] ]
}; };
setTimeout(()=>{
if(this.map&&!this.map.getLayer("curve-layer-" + p.MId)){
that.map&&that.map.addSource("curve-source-" + p.MId, { that.map&&that.map.addSource("curve-source-" + p.MId, {
type: "geojson", type: "geojson",
data: geojson data: geojson
...@@ -846,6 +847,8 @@ export default { ...@@ -846,6 +847,8 @@ export default {
} }
}); });
} }
},300)
}
}); });
}, },
calculateBezierControlPoint(start, end) { calculateBezierControlPoint(start, end) {
......
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