zbycz / osmapp

Lets make a universal app for OpenStreetMap
https://osmapp.org
GNU General Public License v3.0
212 stars 18 forks source link

Optimized `<iframe>` view #216

Open Dlurak opened 10 months ago

Dlurak commented 10 months ago

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 commented 10 months ago

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 commented 10 months ago

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