Skip to content

Multicolorpolyline 260721 - #2235

Draft
richnetdesign wants to merge 7 commits into
fleaflet:masterfrom
richnetdesign:multicolorpolyline-260721
Draft

Multicolorpolyline 260721#2235
richnetdesign wants to merge 7 commits into
fleaflet:masterfrom
richnetdesign:multicolorpolyline-260721

Conversation

@richnetdesign

Copy link
Copy Markdown

No description provided.

Introduce MulticolorPolyline with per-vertex colors, border handling, and tests. Skip simplification and segmentation for multicolor polylines so gradients stay intact.
Allow MulticolorPolyline to omit vertexColors and render a uniform fallback color. Resolve effective colors lazily so transparent vertex handling and render hashes stay correct.
Avoid a LateInitializationError in the polyline painter when a line is rendered without a border stroke.
Restore stroke-aware viewport culling, calculate meter widths once, expose only supported stroke options, and keep multicolor equality and hashing stable.
Track source indices through projected fragments so aggressive culling preserves per-vertex colors, and skip residual off-screen segment draw calls.
Interpolate vertex colors through joins, preserve cap behavior, and avoid opacity accumulation for transparent routes.
@JaffaKetchup

Copy link
Copy Markdown
Member

Hi @richnetdesign, thanks for opening this! It looks like an interesting feature addition from what I can see in the code.

If this is something you would like us to take a look at in future, could you please give this PR a better title and write a description please? Otherwise we may have to close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants