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.
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.

2 participants