Opened 11 years ago

Closed 10 years ago

#1083 closed enhancement (fixed)

Remove margin from embeddable HTML maps

Reported by: steve@… Owned by: Tom Hughes
Priority: minor Milestone:
Component: website Version:
Keywords: Cc:

Description

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>

Change History (2)

comment:1 Changed 10 years ago by Tom Hughes

Component: mapnikwebsite

comment:2 Changed 10 years ago by Thomas Wood

Resolution: fixed
Status: newclosed

This was fixed in r14223

Note: See TracTickets for help on using tickets.