Template:Map: Difference between revisions
Set a default style height to prevent flickering of the box height. If Leaflet loads before the height, it can incorrectly calculate the map's default position.
No edit summary |
(Set a default style height to prevent flickering of the box height. If Leaflet loads before the height, it can incorrectly calculate the map's default position.) |
||
Line 1:
<div class="map" id="map" style="height: {{{height|300px}}}></div><span class="map-template-data" style="display: none;"><nowiki>{"location":"</nowiki>{{{location}}}<nowiki>"}</nowiki></span><noinclude>{{/doc}}</noinclude>
|