NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello everybody,

this is my first question here. I use iframes to embed osms in my webpage. It works fine in Chrome, but not in Firefox, were it used to work in the past.

The maps do show, but are not interactive anymore: Links are not clickable, the zoom-buttons are inactive, etc.

Apparently, Firefox does not load the css-file and the js-file that come with the embed.html that gets loaded via the iframe, since that portions shows in grey upon inspection of the embedded iframe on my webpage. How do I fix this?

I tried loading the css and the js in the header/body/after the body of my index.html instead, tried to fiddle with Firefox-settings concerned with security and also tried to use object instead of iframe, but to no avail.

Here is the code I use in HTML to embed the iframe:

<iframe width="xxx" height="xxx" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" style="border=none;" src="https://www.openstreetmap.org/export/embed.html?bbox=xxx"></iframe>

Thank you!

asked 01 Oct '22, 20:12

chronos2022's gravatar image

chronos2022
11112
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×710
×24
×15

question asked: 01 Oct '22, 20:12

question was seen: 931 times

last updated: 01 Oct '22, 20:12

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum