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

Allow map event propagation on marker click #172

Merged
merged 2 commits into from
Jun 27, 2024
Merged

Conversation

jaspk06
Copy link
Contributor

@jaspk06 jaspk06 commented Jun 27, 2024

Tries to keep the event payload more in line with maplibre mouse events.

Since we're extending their Marker class, there's gonna be limitations as towards how flexible this event + event payload can be. Mainly, it's gonna be really tricky trying to stop event propagation to the map itself since all of maplibre's event are built using the map event listener. For example, they determine which element was "clicked" by checking if the event target contains the map element AND a marker in their own marker click handler. Their popup click handler is also tied to the map click event so we ideally we are not interfering with it.

@jaspk06 jaspk06 requested a review from kochis June 27, 2024 15:16
@jaspk06 jaspk06 merged commit be6c07c into master Jun 27, 2024
3 checks passed
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