New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feat] Support dashed lines in ArcLayer #8447
Comments
While the ArcLayer doesn't support the PathExtension, you could generate arcs in JS with the PathLayer and use the PathExtension. Here's a codepen demonstrating this concept. While it won't be as performant as the shader-based arcs, the shape can be customized and its dashed. |
Thanks! I've now got dashed lines in a custom ArcLayer (by creating TRIANGLES instead of a TRIANGLE_STRIP and patching the shaders). Quite happy to show how I've done this but it won't be for a week or three as am about to go on leave -- would you like a PR or have code pasted here? |
Oh cool. I'd love to see your solution, whatever's convenient for you. |
Here's the relevant bits:
|
Target Use Case
We use MapLibre to show cartoon maps of anatomical features on which neuron paths are drawn, using both plain and dashed coloured lines. The resulting map looks cluttered when there is a large number of neuron paths -- going into 3D, using Deck's ArcLayer, simply works (thanks!), nicely separating the paths. We just now need a layer with arcs drawn as dashed lines...
Proposal
Is this a case of extending the
path-styles
extension toArcLayer
? Or rather, what limits this extension toPathLayer
?The text was updated successfully, but these errors were encountered: