This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Map is appeared only on mobile phone

0

I've exported html code from OSM site. I can't see my map when I use desktop browser, there's only empty rectangle, but I'm able to see it when I use my mobile phone. Overall, only on my default mobile browser I see it correctly, with appropriate zoom, because on Chrome it's totally zoom out, so that I see whole world. How can I fix it, any ideas? Thank you in advance

Edit: I've input my area, add a marker and used share button. I've chose HTML option and generated code I've added to my website. But when I launch my application I can't see my map, unless I use mobile phone, but also there is problem because I have to use default browser (in Chrome zoom is not appropriate)

asked 08 Sep '16, 11:00

adolzi's gravatar image

adolzi
11224
accept rate: 0%

edited 08 Sep '16, 11:21

Do you mean you pressed the "export" button on the OpenStreetMap.org site, or "Share", or something else? Can you explain in a bit more detail what you did, and what you expected to happen?

(08 Sep '16, 11:06) SomeoneElse ♦

See my edit please

(08 Sep '16, 11:19) adolzi

One Answer:

2

Have you tried making the code again?

I tried locally, and it works just fine. Maybe you could share your code here.

A common problem with iFrames is that your browser might not be willing to show it if you use a http:// iframe within a https:// website

answered 09 Sep '16, 17:42

joost%20schouppe's gravatar image

joost schouppe
3.4k245087
accept rate: 12%

Source code available on GitHub .