Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Remove margin from embeddable HTML maps #1083

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

Remove margin from embeddable HTML maps #1083

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: steve[at]greenend.org.uk
[Submitted to the original trac issue database at 7.03pm, Wednesday, 30th July 2008]

Could the embed.html file be changed to include:

body { margin: 0; }

in the style? It makes no difference when the map is embedded using an iframe (as suggested by the HTML produced by the Export tab), but at least on some browsers (for example Firefox 3) there's an unwanted margin when the map is embedded using the object tag.

Example code to demonstrate the issue:

<object style="width:425px;height:350px;border:1px solid black" codetype="text/html"
data="http://www.openstreetmap.org/export/embed.html?bbox=-0.06257,51.54672,-0.05574,51.55127&amp;layer=mapnik&amp;marker=51.54937,-0.05942">
</object>
@openstreetmap-trac
Copy link
Author

Author: grand.edgemaster[at]gmail.com
[Added to the original trac issue at 5.03pm, Wednesday, 6th May 2009]

This was fixed in r14223

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

No branches or pull requests

1 participant