Commit 8ace6478 authored by youjie's avatar youjie

no message

parent be02ae86
......@@ -827,24 +827,28 @@ export default {
}
]
};
that.map&&that.map.addSource("curve-source-" + p.MId, {
type: "geojson",
data: geojson
});
that.map&&that.map.addLayer({
id: "curve-layer-" + p.MId,
type: "line",
source: "curve-source-" + p.MId,
layout: {
"line-cap": "round",
"line-join": "round"
},
paint: {
"line-color": ["rgba", 0, 0, 0, 0.3],
"line-width": 1.5
//'line-dasharray': [2, 4],
setTimeout(()=>{
if(this.map&&!this.map.getLayer("curve-layer-" + p.MId)){
that.map&&that.map.addSource("curve-source-" + p.MId, {
type: "geojson",
data: geojson
});
that.map&&that.map.addLayer({
id: "curve-layer-" + p.MId,
type: "line",
source: "curve-source-" + p.MId,
layout: {
"line-cap": "round",
"line-join": "round"
},
paint: {
"line-color": ["rgba", 0, 0, 0, 0.3],
"line-width": 1.5
//'line-dasharray': [2, 4],
}
});
}
});
},300)
}
});
},
......
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