Skip to content
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

Improve Marker.anchor performance #1558

Merged
merged 1 commit into from
Jun 19, 2023

Conversation

rorystephenson
Copy link
Contributor

This addresses #1552, it re-instates the precalculated Anchor on a Marker whilst leaving the argument as an anchorPos which makes it consistent with the MarkerLayer options.

This allows Marker to accept the same anchor argument as MarkerLayer,
anchorPos, whilst still precalculating the Anchor so it isn't calculated
on every build.

Co-authored-by: Luka S <github@jaffaketchup.dev>
Copy link
Member

@JaffaKetchup JaffaKetchup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I think this behaves correctly.

@JaffaKetchup JaffaKetchup changed the title Restore marker anchor Improve Marker.anchor performance Jun 19, 2023
@JaffaKetchup JaffaKetchup merged commit 8ac3ebd into fleaflet:master Jun 19, 2023
@JaffaKetchup JaffaKetchup linked an issue Jun 19, 2023 that may be closed by this pull request
@rorystephenson rorystephenson deleted the restore-marker-anchor branch June 20, 2023 09:58
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.

[FEATURE] Re-instate Anchor on Marker
2 participants