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

Install add/remove event listeners directly on note layer #5500

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

AntonKhorev
Copy link
Collaborator

de78176 added layeradd/layerremove listeners on map that check the layer and only do something if it's noteLayer. Later 85282f5 added click listener directly on noteLayer. But layeradd/layerremove could also be installed directly on noteLayer, then comparing the layers wouldn't be necessary.

Elsewhere the same thing is considered for data layer: #5474 (comment)

@AntonKhorev AntonKhorev added the javascript Pull requests that update Javascript code label Jan 15, 2025
@tomhughes
Copy link
Member

Looks good to me, thanks.

@tomhughes tomhughes merged commit bde5fb4 into openstreetmap:master Jan 16, 2025
22 checks passed
@AntonKhorev AntonKhorev deleted the note-layer-listeners branch January 16, 2025 23:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants