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.
asked
24 Feb '15, 11:04
DonatelloXX
61●2●2●6
accept rate:
0%
and what is the fix to the bug?! Let others with the same problem know it. Update: thanks, @Vincent!