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

New note page on low zooms #5443

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

AntonKhorev
Copy link
Collaborator

If

show a warning message and disable the submit button.

image

Fixes #1291 and another bug: note marker was disappearing together with notes layer when visible area became too large.

This function works both with newNoteMarker and the passed marker, however the passed marker is always newNoteMarker.
This function doesn't update any existing marker.
This function adds a marker to notes layer. This controller doesn't need to do anything with markers of existing notes.
We want the new note marker in the same layer with its halo. Also we don't want to put anything in noteLayer because it clears its contents on certain zoom levels.
newHalo() wasn't always creating new halos. It had an event type argument that was checked against drag event. Depending on this check, newHalo() could remove the halo.
This ensures that marker is always added/removed together with its halo.
It was also called from noteCreated() but that triggered page.unload() via OSM.router.route().
Same reasons as in the previous commit.
Note that addNoteButton.hasClass("active") check in page.load is useless because page.unload removes this class.
If not done, it's possible to lose the marker when starting from low zooms.
@AntonKhorev AntonKhorev force-pushed the new-note-marker-variable branch from 7c8e2f2 to 2a5ae1a Compare December 26, 2024 00:08
@AntonKhorev AntonKhorev changed the title New note marker variable New note page on low zooms Dec 26, 2024
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.

low zoom URLs for adding a note handled badly
1 participant