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

I haVe embeded a OSM-POI in a Website using the Iframe-Method (Export to HTML).

In Firefox and Chrome this works like a charm. In Inernet Explorer (versions 10 and 11) the iframe remains grey.

If i open the embeded url (http://www.openstreetmap.org/export/embed.html?bbox=15.417423248291016%2C48.54885900556121%2C15.431585311889647%2C48.55517964627281&layer=mapnik&marker=48.55201942461214%2C15.424504280090332) in a new Browser Window i get the following error in the javascript console:

SCRIPT5009: "OSM" ist undefiniert
Datei: embed-5dc5be9a8305fd6a9248aec4b2960eca.js, Zeile: 4, Spalte: 32013

Example Website (in german): http://www.kfz-gassner.at/

Is there something wrong with osm's embed.html?

EDIT: It seems other Browsers have the same Problem. The reason why it worked in FF an Chrome was because elements were retrieved from cache.

EDIT 2: The Javascript error is related with setting markers. If i open the url http://www.openstreetmap.org/export/embed.html?bbox=15.417423248291016%2C48.54885900556121%2C15.431585311889647%2C48.55517964627281&layer=mapnik (without &marker=48.55201942461214%2C15.424504280090332) the map shows up. Firefox javascript error with marker:

ReferenceError: OSM is not defined
http://www.openstreetmap.org/assets/embed-5dc5be9a8305fd6a9248aec4b2960eca.js
Line 4
...arker(e.marker.split(","),{icon:L.icon({iconUrl:OSM.MARKER_ICON,iconSize:new L.P...

EDIT 3: Now (14:55) the Bug is fixed.

This question is marked "community wiki".

asked 24 Feb '15, 11:04

DonatelloXX's gravatar image

DonatelloXX
61226
accept rate: 0%

edited 24 Feb '15, 17:49

aseerel4c26's gravatar image

aseerel4c26 ♦
32.6k18248554

1

and what is the fix to the bug?! Let others with the same problem know it. Update: thanks, @Vincent!

(24 Feb '15, 14:45) aseerel4c26 ♦

Separately reported and fixed.

permanent link

answered 24 Feb '15, 16:50

Vincent%20de%20Phily's gravatar image

Vincent de P... ♦
17.3k18152249
accept rate: 19%

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:

×293
×89
×60
×2
×1

question asked: 24 Feb '15, 11:04

question was seen: 4,840 times

last updated: 24 Feb '15, 17:50

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