Commit 8ace6478 authored by youjie's avatar youjie

no message

parent be02ae86
...@@ -827,6 +827,8 @@ export default { ...@@ -827,6 +827,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 +848,8 @@ export default { ...@@ -846,6 +848,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