Template:Map: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
(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
Line 1: 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>
<div class="map" id="map" style="height: {{{height|300px}}}></div><span class="map-template-data" style="display: none;"><nowiki>{"type":"</nowiki>{{{type}}}<nowiki>","location":"</nowiki>{{{location}}}<nowiki>"}</nowiki></span><noinclude>{{/doc}}</noinclude>