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

Optimized <iframe> view #216

Open
Dlurak opened this issue Dec 14, 2023 · 2 comments
Open

Optimized <iframe> view #216

Dlurak opened this issue Dec 14, 2023 · 2 comments

Comments

@Dlurak
Copy link
Contributor

Dlurak commented Dec 14, 2023

Google maps makes it very easy to embed the map on a own website, just a few clicks to do so.
With openstreetmap it isn't that easy, for a fast and simple solution you can either use Leaflet or use a iframe with a site like osmapp.
Leaflet isn't too complex to setup but still more then just copying an iframe.
The ux of a normal iframe isn't too good.

I think it would be nice to have an option to create an iframe similar to how it works on Google maps.
image

@zbycz
Copy link
Owner

zbycz commented Dec 15, 2023

Hi, what would you suggest to change? I guess that we can hide the SearchBox under some button, when the map is invoked via https://osmapp.org/?iframe URL.

I am also not sure it is wise to allow users editing the map in iframe, there should be probably link to full size website.

Any other ideas?

@Dlurak
Copy link
Contributor Author

Dlurak commented Dec 17, 2023

Great suggestions!
It might be beneficial to include specific details in the URL indicating the preferred base layer, such as Standard, Outdoor, or Mapnik.

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

2 participants