Commit 26154815 authored by youjie's avatar youjie

no message

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