Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript error in embed.html when using a marker #909

Closed
vincentdephily opened this issue Feb 24, 2015 · 1 comment
Closed

Javascript error in embed.html when using a marker #909

vincentdephily opened this issue Feb 24, 2015 · 1 comment

Comments

@vincentdephily
Copy link
Contributor

The code for embeding a map in an iframe is currently broken when a marker is included. In Firefox 35 I can see the zoom controls but no tile. Firebug says

ReferenceError: OSM is not defined
...arker(e.marker.split(","),{icon:L.icon({iconUrl:OSM.MARKER_ICON,iconSize:new L.P...

http://www.openstreetmap.org/export/embed.html?bbox=4.3248796463012695%2C46.03386170107126%2C4.33086633682251%2C46.03593974142237&layer=transportmap&marker=46.03490073101441%2C4.32787299156189

If you remove or mangle the 'marker' query string, it renders correctly (but lacking a marker).

@vincentdephily
Copy link
Contributor Author

BTW, this url is what you get when using "share ... HTML ... include marker" on osm.org. There are probably a lot of "how to find us" buisiness pages affected by this in the wild.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant