13 lines
1 KiB
Text
Executable file
13 lines
1 KiB
Text
Executable file
<div id='mapid_${current_world_key}' class='leaflet-map'></div>
|
|
<div class='map-sub-info'>
|
|
${map_sub_info_link}
|
|
<span class='map-last-update'>Letzte Kartenaktualisierung: <span id='map-last-update-text-${current_world_key}'><em>wird geladen...</em></span></span>
|
|
</div>
|
|
<script>
|
|
var map_${current_world_key}=L.map('mapid_${current_world_key}',{fullscreenControl:true,fullscreenControlOptions:{position:'topleft',title:'Vollbild',titleCancel:'Vollbild verlassen'}});
|
|
var worldBounds=L.latLngBounds(L.latLng(${LEAFLET_BOUNDS_SOUTH},${LEAFLET_BOUNDS_WEST}),L.latLng(${LEAFLET_BOUNDS_NORTH},${LEAFLET_BOUNDS_EAST}));
|
|
map_${current_world_key}.fitBounds(worldBounds);
|
|
map_${current_world_key}.setMaxBounds(worldBounds);
|
|
map_${current_world_key}.setZoom(${LEAFLET_ZOOM_AFTER_FIT});
|
|
L.tileLayer('/${web_tiles_rel_path}/{z}/{x}/{y}.png?v=${CACHE_BUSTER}',{attribution:'© ${SITE_TITLE} - ${WORLD_DISPLAY_NAME_PAGE}',minZoom:${min_zoom:-0},maxZoom:${max_zoom:-5},noWrap:true,bounds:worldBounds,tms:false}).addTo(map_${current_world_key});
|
|
</script>
|