Altes Köln

Widget:Leaflet: Unterschied zwischen den Versionen

Aus Altes Köln
Wechseln zu:Navigation, Suche
(Die Seite wurde neu angelegt: „<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script> <link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/> <div id="{{{id|mapid}}}" style="height: {{{height|400px}}}; width: {{{width|600px}}};"></div> <script> var map = L.map('{{{id|mapid}}}').setView([{{{lat|50.94}}}, {{{lon|6.96}}}], {{{zoom|12}}}); L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '© O…“)
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<div id="mapid" style="width: 100%; height: 500px;"></div>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/>
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
<script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/>
<div id="{{{id|mapid}}}" style="height: {{{height|400px}}}; width: {{{width|600px}}};"></div>


<script>
<script>
var map = L.map('{{{id|mapid}}}').setView([{{{lat|50.94}}}, {{{lon|6.96}}}], {{{zoom|12}}});
  var map = L.map('mapid').setView([50.94, 6.96], 12);
 
  L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
     maxZoom: 19,
     maxZoom: 19,
     attribution: '© OpenStreetMap contributors'
     attribution: '© OpenStreetMap contributors'
}).addTo(map);
  }).addTo(map);
 
{{{markers|}}}
</script>
</script>

Version vom 6. Dezember 2025, 17:28 Uhr

<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.3/dist/leaflet.css"/> <script src="https://unpkg.com/leaflet@1.9.3/dist/leaflet.js"></script>

<script>

 var map = L.map('mapid').setView([50.94, 6.96], 12);
 L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
   maxZoom: 19,
   attribution: '© OpenStreetMap contributors'
 }).addTo(map);

</script>

Cookies helfen uns bei der Bereitstellung von Altes Köln. Durch die Nutzung von Altes Köln erklärst du dich damit einverstanden, dass wir Cookies speichern.