Skip to content

Add persistent directional arrows to task feature LineStrings#2853

Draft
CollinBeczak wants to merge 1 commit into
mainfrom
Add-directional-arrows-to-task-features
Draft

Add persistent directional arrows to task feature LineStrings#2853
CollinBeczak wants to merge 1 commit into
mainfrom
Add-directional-arrows-to-task-features

Conversation

@CollinBeczak

Copy link
Copy Markdown
Collaborator

Render an arrow marker at every segment midpoint for all LineString and MultiLineString task features, not only those tagged oneway, so direction of travel is visible without toggling the feature layer animation. Honors oneway=-1/reverse for arrow direction.

Also fixes the bundling animation bug: MapAnimator is now memoized so its animationFunction survives bundle changes (previously a fresh animator was constructed on every render, wiping the animation function since setAnimationFunction only re-runs on task.id changes).

Render an arrow marker at every segment midpoint for all LineString and
MultiLineString task features, not only those tagged oneway, so direction
of travel is visible without toggling the feature layer animation.
Honors oneway=-1/reverse for arrow direction.

Also fixes the bundling animation bug: MapAnimator is now memoized so
its animationFunction survives bundle changes (previously a fresh
animator was constructed on every render, wiping the animation function
since setAnimationFunction only re-runs on task.id changes).
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.

1 participant