Template:Map: Difference between revisions

47 bytes removed ,  17 December 2024
Use data attributes instead of a hidden span
(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.)
(Use data attributes instead of a hidden span)
 
(6 intermediate revisions by the same user not shown)
Line 1:
<div class="map" id="map" style="height: {{{height|300px}}}></div><span; class=width: {{{width|300px}}};"map data-template-data" styletype="display: none;"><nowiki>{{{type}}}"location data-target=":"</nowiki>{{{locationtarget}}}<nowiki>"}</nowiki></spandiv><noinclude>{{/doc}}</noinclude>