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

tooltipAnchor option on icons create by iconCreateFunction is ignored #1087

Open
Etienne-M opened this issue Feb 2, 2023 · 0 comments
Open

Comments

@Etienne-M
Copy link

The problem seems to be coming from the fact that the MarkerCluster class is its own icon. See its constructor. But Leaflet's Marker get the tooltip anchor from the option of its icon. See getter method.

There's a couple of easy fixes that we could do:

  • Overwrite the getter;
  • Merge the options of the icon with the options of MarkerCluster when calling iconCreateFunction;
  • Set specifically the tooltipAnchor option when calling iconCreateFunction
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

No branches or pull requests

1 participant