Commit 8ace6478 authored by youjie's avatar youjie

no message

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