Altes Köln

Widget:Bauwerkskarte: Unterschied zwischen den Versionen

Aus Altes Köln
Wechseln zu:Navigation, Suche
Die Seite wurde neu angelegt: „<div id="map-{{{id}}}" style="width:{{{width|400}}}px;height:{{{height|400}}}px;"></div> <script> (function () { var lat = {{{lat}}}; var lon = {{{lon}}}; if (!lat || !lon) return; var map = L.map('map-{{{id}}}', { scrollWheelZoom: false }).setView([lat, lon], {{{zoom|16}}}); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { attribution: '© OpenStreetMap' }).addTo(map); L.marker([lat, lon]).addTo(map); })();…“
 
Keine Bearbeitungszusammenfassung
 
Zeile 1: Zeile 1:
<div id="map-{{{id}}}" style="width:{{{width|400}}}px;height:{{{height|400}}}px;"></div>
<div id="map-{{{id}}}" style="width:400px;height:400px;"></div>


<script>
<script>

Aktuelle Version vom 28. Dezember 2025, 20:56 Uhr

<script> (function () {

 var lat = {{{lat}}};
 var lon = {{{lon}}};
 if (!lat || !lon) return;
 var map = L.map('map-{{{id}}}', {
   scrollWheelZoom: false
 }).setView([lat, lon], 16);
 L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
   attribution: '© OpenStreetMap'
 }).addTo(map);
 L.marker([lat, lon]).addTo(map);

})(); </script>