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

Map doesn't zoom to Note if URL contains comment ID #5596

Open
BathoryPeter opened this issue Feb 3, 2025 · 0 comments
Open

Map doesn't zoom to Note if URL contains comment ID #5596

BathoryPeter opened this issue Feb 3, 2025 · 0 comments

Comments

@BathoryPeter
Copy link

URL

https://www.openstreetmap.org/note/4574916#c10050110

How to reproduce the issue?

If a note link contains comment id in the url hash, the map will not scroll to the note marker.

For example open this link:
https://www.openstreetmap.org/note/4574916#c10050110

Instead of showing the note marker, the map view is set to the last visited location, and the #c… id in the url replaced with #map=…

Screenshot(s) or anything else?

It seems when moveToNote() runs, the hash has already been replaced with #map=.

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