first alpha (v0.1)
This commit is contained in:
commit
21d58c29f7
26 changed files with 15935 additions and 0 deletions
13
site_generator/templates/world_detail_map.template
Executable file
13
site_generator/templates/world_detail_map.template
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue