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

Click and display marker issue fixed #5

Merged
merged 1 commit into from
Nov 2, 2023
Merged

Conversation

oda79
Copy link
Owner

@oda79 oda79 commented Nov 2, 2023

What

  1. Click on invisible canvas layer issue fixed. When there are more than one canvas layer, map propagates all mouse events to all canvas layers as they are children of one overlay layer. Now, when a canvas layer is hidden (this._canvas.style.visibility === "hidden" || this._canvas.style.display === "none"), event listeners are not executed for it.

  2. Any marker can have its own icon (image from file or svg as html). The icon should be provided as L.divIcon. Using an marker.type property a particular icon can be set for a group of markers.

@oda79 oda79 merged commit 0d15979 into main Nov 2, 2023
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