Beschreibung
Dies ist die Vorlage Karte. Sie unterstützt das einfache Einbinden einer Karte aus "OpenStreetMap" mit der Anmutung von "Leaflet".
Verwendung
Die erste unbenannte Parameter für die Koordinaten muss angegeben werden. Sofern keine Werte für die optionalen Parameter "zoom
" (Standardwert = 16) "width
" (Standardwert = 400), "height
" (Standardwert = 300) und "center
" (Standardwert = leer) angegeben werden, werden deren Standardwerte verwendet. Für "center
" kann ein beliebiger Wert angegeben werden. Die optionalen Parameter können in beliebigen Kombinationen genutzt werden.
Im Folgenden ein paar häufige Beispiele, die sich indes nicht erschöpfen.
Karte mit Koordinaten
{{Karte
|52.404202, 13.038500
}}
- Beispiel
Die Karte wird geladen …
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"400px","height":"300px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":true,"static":false,"zoom":16,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":52.404202,"lon":13.0385,"icon":""}],"imageoverlays":null}
Karte mit Koordinaten und Zoom
Sinnvolle Werte für den Parameter Zoom liegen zwischen 13 (weit) und 18 (nah).
{{Karte
|52.404202, 13.038500
|zoom=18
}}
- Beispiel
Die Karte wird geladen …
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"400px","height":"300px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":true,"static":false,"zoom":18,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":52.404202,"lon":13.0385,"icon":""}],"imageoverlays":null}
Karte mit Koordinaten ohne Markierung
Für den Parameter Center kann ein beliebiger Wert angegeben werden, bspw. "yes".
{{Karte
|52.404202, 13.038500
|center=yes
}}
- Beispiel
Die Karte wird geladen …
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"400px","height":"300px","centre":{"text":"","title":"","link":"","lat":52.404202,"lon":13.0385,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":true,"static":false,"zoom":16,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[],"imageoverlays":null}
Karte mit Koordinaten, Zoom und Größenangaben
{{Karte
|52.404202, 13.038500
|zoom=13
|width=520
|height=350
}}
- Beispiel
Die Karte wird geladen …
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"520px","height":"350px","centre":false,"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":true,"static":false,"zoom":13,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[{"text":"","title":"","link":"","lat":52.404202,"lon":13.0385,"icon":""}],"imageoverlays":null}
Karte mit Koordinaten, Zoom, Größenangaben und keiner Markierung
{{Karte
|52.404202, 13.038500
|zoom=13
|width=520
|height=350
|center=yes
}}
- Beispiel
Die Karte wird geladen …
{"minzoom":false,"maxzoom":false,"mappingservice":"leaflet","width":"520px","height":"350px","centre":{"text":"","title":"","link":"","lat":52.404202,"lon":13.0385,"icon":""},"title":"","label":"","icon":"","lines":[],"polygons":[],"circles":[],"rectangles":[],"copycoords":true,"static":false,"zoom":13,"defzoom":14,"layers":["OpenStreetMap"],"image layers":[],"overlays":[],"resizable":false,"fullscreen":false,"scrollwheelzoom":true,"cluster":false,"clustermaxzoom":20,"clusterzoomonclick":true,"clustermaxradius":80,"clusterspiderfy":true,"geojson":"","clicktarget":"","imageLayers":[],"locations":[],"imageoverlays":null}
Ermitteln der Koordinaten
- Beispiel
Karte von Ahrweiler bei OpenStreetMap öffnen, zum Gebäude/zur Stelle zoomen, rechts bei den Überblendungen in der untersten Überblendung auf den Pfeil „Objektabfrage“ klicken und die Position auswählen. So ändern sich in der URL-Zeile die Koordinaten. Diese dann einfach in die Vorlage (gleiche Reihenfolge) kopieren.