Commit bc1131c1 authored by youjie's avatar youjie

no message

parent f87cb16b
...@@ -803,6 +803,7 @@ export default { ...@@ -803,6 +803,7 @@ export default {
[x.longitude, x.latitude], [x.longitude, x.latitude],
[y.longitude, y.latitude] [y.longitude, y.latitude]
); );
setTimeout(()=>{
const geojson = { const geojson = {
type: "FeatureCollection", type: "FeatureCollection",
features: [ features: [
...@@ -816,7 +817,6 @@ export default { ...@@ -816,7 +817,6 @@ export default {
} }
] ]
}; };
setTimeout(()=>{
if(this.map&&!this.map.getLayer("curve-layer-" + p.MId)){ 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",
......
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