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: Predefined views for landmarks #696

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

Conversation

Dlurak
Copy link
Collaborator

@Dlurak Dlurak commented Oct 18, 2024

Description

Some landmarks now have predefined views. These views include pitch, bearing and zoom. For towers the bearing might be irrelevant so any of these properties is optional.
When the user opens a link to a landmark with a defined view and without a position hash the view is automatically applied, when searching for a item the view is also applied.
When the user clicks on a landmark nothing happens by default but a button is shown to go to the recommended view.

Example links

Screenshots

Problems

  • The ideal zoom changes depending on the screen size and aspect ratio

Copy link

vercel bot commented Oct 18, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
osmapp ✅ Ready (Inspect) Visit Preview Oct 18, 2024 4:39pm

return `https://osmapp.org${end}`;
}
// TODO: Find the *right* url also for preview deployments
return `http://localhost:3000${end}`;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This currently blocks preview deployments but i don't know how to get the correct url

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