Hilfe:Kartographer

aus Wikipedia, der freien Enzyklopädie
(Weitergeleitet von Hilfe:Maplink)

Die MediaWiki-Erweiterung Kartographer unterstützt das Arbeiten mit Landkarten als Grafik.

Das Element <maplink> ermöglicht einen Verweis auf eine ganzseitige Landkarte. Es wurde am 7. September 2016 auf allen Projekten freigeschaltet.

Das Element <mapframe> ermöglicht die Einbindung eines statischen Kartenausschnittes in eine Wiki-Seite. Es wurde in diesem Wiki am 7. Juni 2022 freigeschaltet.

maplink

Die Wirkung ist die Generierung einer Verlinkung auf eine Karte im Vollbildmodus, ggf. mit eingezeichneten Positionen.

Bei Benutzern mit aktiviertem JavaScript (bei dir ist JavaScript momentan nicht aktiviert) wird die generierte Karte der bisher betrachteten Wiki-Seite überlagert; die URL bleibt unverändert (abgesehen von einem angehängten Fragment).

Ohne JavaScript wird eine Verlinkung mit der Spezialseite erzeugt; genauer: diese wird immer vom Server ausgeliefert, jedoch mittels JavaScript durch die überlagerte Karte ersetzt.

Syntax

Das Element <maplink> kann mit Parametern verwendet werden:

alt
Alternativtext
class
Universalparameter
group
Nur auf Wikivoyage freigeschaltet.
latitude
Geografische Breite des Kartenmittelpunkts
Dezimalzahl mit Punkt
Angabe empfehlenswert; Vorgabe: 0
longitude
Geografische Länge des Kartenmittelpunkts
Dezimalzahl mit Punkt
Angabe empfehlenswert; Vorgabe: 0
mapstyle
Vorgabe: osm-intl
show
Detail zu group=
text
Linkbeschriftung
Optional; Vorgabe: Koordinatenwerte
zoom
Zoomfaktor
Anhaltswerte:
  • 6, 7 – Staat
  • 12 – Stadt
  • 16 – Stadtplan

Inhalt des Elements ist eine JSON-Struktur (basierend auf GeoJSON) mit beispielsweise folgenden Komponenten:

type
"Feature" – Anzeigeelement, im Raum begrenzt
"FeatureCollection" – Anzeigeelemente
  • muss ein Array features:[] enthalten
"Geometry" – Reine Geometrie
geometry
Objekt mit den Komponenten:
coordinates
Array [2] mit den Koordinaten [Länge, Breite] als numerische Werte
type
Art des Anzeigeelements
"Point" – Punkt
"LineString" – Linie
"MultiPolygon" – etwa Grenzen
properties
Objekt (Struktur außerhalb von GeoJSON) mit den Komponenten:
description
Erläuterung zum Anzeigeelement, kann Wiki-Syntax enthalten
marker-color
Hexadezimalcode für den Farbwert
marker-size
Größe des Anzeigeelements (small/medium/large)
Vorgabe: medium
marker-symbol
Gestaltung des Anzeigeelements
  • Text/Symbol im Kopf des Markers – erlaubt sind Ziffern „0“ … „9“, Kleinbuchstaben „a“ … „z“ (werden auf Großbuchstaben konvertiert) und Iconnamen aus http://mapbox.com/maki/ Hier die von unserer Implementierung unterstützten Icons: <maplink text="Maki Icons" width="350" height="350" zoom="10" longitude="0.3" latitude="-0.25">

{

 "type": "FeatureCollection",
 "features": [
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.00] }, "properties": { "title":"Maki Icon: aerialway", "marker-symbol":"aerialway"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.00] }, "properties": { "title":"Maki Icon: airfield", "marker-symbol":"airfield"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.00] }, "properties": { "title":"Maki Icon: airport", "marker-symbol":"airport"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.00] }, "properties": { "title":"Maki Icon: alcohol-shop", "marker-symbol":"alcohol-shop"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.00] }, "properties": { "title":"Maki Icon: america-football", "marker-symbol":"america-football"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.00] }, "properties": { "title":"Maki Icon: amusement-park", "marker-symbol":"amusement-park"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.00] }, "properties": { "title":"Maki Icon: aquarium", "marker-symbol":"aquarium"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.00] }, "properties": { "title":"Maki Icon: art-gallery", "marker-symbol":"art-gallery"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.00] }, "properties": { "title":"Maki Icon: attraction", "marker-symbol":"attraction"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.00] }, "properties": { "title":"Maki Icon: bakery", "marker-symbol":"bakery"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.00] }, "properties": { "title":"Maki Icon: bank", "marker-symbol":"bank"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.00] }, "properties": { "title":"Maki Icon: bar", "marker-symbol":"bar"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.05] }, "properties": { "title":"Maki Icon: baseball", "marker-symbol":"baseball"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.05] }, "properties": { "title":"Maki Icon: basketball", "marker-symbol":"basketball"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.05] }, "properties": { "title":"Maki Icon: beer", "marker-symbol":"beer"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.05] }, "properties": { "title":"Maki Icon: bicycle", "marker-symbol":"bicycle"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.05] }, "properties": { "title":"Maki Icon: bicycle-share", "marker-symbol":"bicycle-share"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.05] }, "properties": { "title":"Maki Icon: building", "marker-symbol":"building"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.05] }, "properties": { "title":"Maki Icon: bus", "marker-symbol":"bus"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.05] }, "properties": { "title":"Maki Icon: cafe", "marker-symbol":"cafe"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.05] }, "properties": { "title":"Maki Icon: campsite", "marker-symbol":"campsite"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.05] }, "properties": { "title":"Maki Icon: car", "marker-symbol":"car"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.05] }, "properties": { "title":"Maki Icon: castle", "marker-symbol":"castle"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.05] }, "properties": { "title":"Maki Icon: cemetery", "marker-symbol":"cemetery"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.10] }, "properties": { "title":"Maki Icon: cinema", "marker-symbol":"cinema"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.10] }, "properties": { "title":"Maki Icon: circle", "marker-symbol":"circle"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.10] }, "properties": { "title":"Maki Icon: circle-stroked", "marker-symbol":"circle-stroked"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.10] }, "properties": { "title":"Maki Icon: clothing-store", "marker-symbol":"clothing-store"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.10] }, "properties": { "title":"Maki Icon: college", "marker-symbol":"college"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.10] }, "properties": { "title":"Maki Icon: commercial", "marker-symbol":"commercial"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.10] }, "properties": { "title":"Maki Icon: cricket", "marker-symbol":"cricket"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.10] }, "properties": { "title":"Maki Icon: cross", "marker-symbol":"cross"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.10] }, "properties": { "title":"Maki Icon: dam", "marker-symbol":"dam"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.10] }, "properties": { "title":"Maki Icon: danger", "marker-symbol":"danger"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.10] }, "properties": { "title":"Maki Icon: dentist", "marker-symbol":"dentist"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.10] }, "properties": { "title":"Maki Icon: doctor", "marker-symbol":"doctor"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.15] }, "properties": { "title":"Maki Icon: dog-park", "marker-symbol":"dog-park"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.15] }, "properties": { "title":"Maki Icon: drinking-water", "marker-symbol":"drinking-water"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.15] }, "properties": { "title":"Maki Icon: embassy", "marker-symbol":"embassy"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.15] }, "properties": { "title":"Maki Icon: entrance", "marker-symbol":"entrance"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.15] }, "properties": { "title":"Maki Icon: fast-food", "marker-symbol":"fast-food"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.15] }, "properties": { "title":"Maki Icon: ferry", "marker-symbol":"ferry"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.15] }, "properties": { "title":"Maki Icon: fire-station", "marker-symbol":"fire-station"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.15] }, "properties": { "title":"Maki Icon: fuel", "marker-symbol":"fuel"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.15] }, "properties": { "title":"Maki Icon: garden", "marker-symbol":"garden"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.15] }, "properties": { "title":"Maki Icon: gift", "marker-symbol":"gift"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.15] }, "properties": { "title":"Maki Icon: golf", "marker-symbol":"golf"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.15] }, "properties": { "title":"Maki Icon: grocery", "marker-symbol":"grocery"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.20] }, "properties": { "title":"Maki Icon: hairdresser", "marker-symbol":"hairdresser"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.20] }, "properties": { "title":"Maki Icon: harbor", "marker-symbol":"harbor"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.20] }, "properties": { "title":"Maki Icon: heart", "marker-symbol":"heart"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.20] }, "properties": { "title":"Maki Icon: heliport", "marker-symbol":"heliport"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.20] }, "properties": { "title":"Maki Icon: hospital", "marker-symbol":"hospital"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.20] }, "properties": { "title":"Maki Icon: ice-cream", "marker-symbol":"ice-cream"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.20] }, "properties": { "title":"Maki Icon: industry", "marker-symbol":"industry"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.20] }, "properties": { "title":"Maki Icon: information", "marker-symbol":"information"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.20] }, "properties": { "title":"Maki Icon: laundry", "marker-symbol":"laundry"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.20] }, "properties": { "title":"Maki Icon: library", "marker-symbol":"library"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.20] }, "properties": { "title":"Maki Icon: lighthouse", "marker-symbol":"lighthouse"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.20] }, "properties": { "title":"Maki Icon: lodging", "marker-symbol":"lodging"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.25] }, "properties": { "title":"Maki Icon: marker", "marker-symbol":"marker"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.25] }, "properties": { "title":"Maki Icon: monument", "marker-symbol":"monument"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.25] }, "properties": { "title":"Maki Icon: mountain", "marker-symbol":"mountain"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.25] }, "properties": { "title":"Maki Icon: museum", "marker-symbol":"museum"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.25] }, "properties": { "title":"Maki Icon: music", "marker-symbol":"music"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.25] }, "properties": { "title":"Maki Icon: park", "marker-symbol":"park"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.25] }, "properties": { "title":"Maki Icon: parking", "marker-symbol":"parking"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.25] }, "properties": { "title":"Maki Icon: parking-garage", "marker-symbol":"parking-garage"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.25] }, "properties": { "title":"Maki Icon: pharmacy", "marker-symbol":"pharmacy"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.25] }, "properties": { "title":"Maki Icon: picnic-site", "marker-symbol":"picnic-site"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.25] }, "properties": { "title":"Maki Icon: pitch", "marker-symbol":"pitch"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.25] }, "properties": { "title":"Maki Icon: place-of-worship", "marker-symbol":"place-of-worship"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.30] }, "properties": { "title":"Maki Icon: playground", "marker-symbol":"playground"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.30] }, "properties": { "title":"Maki Icon: police", "marker-symbol":"police"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.30] }, "properties": { "title":"Maki Icon: post", "marker-symbol":"post"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.30] }, "properties": { "title":"Maki Icon: prison", "marker-symbol":"prison"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.30] }, "properties": { "title":"Maki Icon: rail", "marker-symbol":"rail"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.30] }, "properties": { "title":"Maki Icon: rail-light", "marker-symbol":"rail-light"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.30] }, "properties": { "title":"Maki Icon: rail-metro", "marker-symbol":"rail-metro"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.30] }, "properties": { "title":"Maki Icon: ranger-station", "marker-symbol":"ranger-station"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.30] }, "properties": { "title":"Maki Icon: religious-christian", "marker-symbol":"religious-christian"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.30] }, "properties": { "title":"Maki Icon: religious-jewish", "marker-symbol":"religious-jewish"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.30] }, "properties": { "title":"Maki Icon: religious-muslim", "marker-symbol":"religious-muslim"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.30] }, "properties": { "title":"Maki Icon: restaurant", "marker-symbol":"restaurant"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.35] }, "properties": { "title":"Maki Icon: roadblock", "marker-symbol":"roadblock"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.35] }, "properties": { "title":"Maki Icon: rocket", "marker-symbol":"rocket"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.35] }, "properties": { "title":"Maki Icon: school", "marker-symbol":"school"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.35] }, "properties": { "title":"Maki Icon: shelter", "marker-symbol":"shelter"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.35] }, "properties": { "title":"Maki Icon: shop", "marker-symbol":"shop"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.35] }, "properties": { "title":"Maki Icon: skiing", "marker-symbol":"skiing"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.35] }, "properties": { "title":"Maki Icon: soccer", "marker-symbol":"soccer"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.35] }, "properties": { "title":"Maki Icon: square", "marker-symbol":"square"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.35] }, "properties": { "title":"Maki Icon: square-stroke", "marker-symbol":"square-stroke"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.35] }, "properties": { "title":"Maki Icon: stadium", "marker-symbol":"stadium"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.35] }, "properties": { "title":"Maki Icon: star", "marker-symbol":"star"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.35] }, "properties": { "title":"Maki Icon: star-stroke", "marker-symbol":"star-stroke"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.40] }, "properties": { "title":"Maki Icon: suitcase", "marker-symbol":"suitcase"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.40] }, "properties": { "title":"Maki Icon: sushi", "marker-symbol":"sushi"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.40] }, "properties": { "title":"Maki Icon: swimming", "marker-symbol":"swimming"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.40] }, "properties": { "title":"Maki Icon: telephone", "marker-symbol":"telephone"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.40] }, "properties": { "title":"Maki Icon: tennis", "marker-symbol":"tennis"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.40] }, "properties": { "title":"Maki Icon: theatre", "marker-symbol":"theatre"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.30, -0.40] }, "properties": { "title":"Maki Icon: toilet", "marker-symbol":"toilet"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.35, -0.40] }, "properties": { "title":"Maki Icon: town-hall", "marker-symbol":"town-hall"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.40, -0.40] }, "properties": { "title":"Maki Icon: triangle", "marker-symbol":"triangle"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.45, -0.40] }, "properties": { "title":"Maki Icon: triangle-stroked", "marker-symbol":"triangle-stroked"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.50, -0.40] }, "properties": { "title":"Maki Icon: veterinary", "marker-symbol":"veterinary"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.55, -0.40] }, "properties": { "title":"Maki Icon: volcano", "marker-symbol":"volcano"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.00, -0.45] }, "properties": { "title":"Maki Icon: warehouse", "marker-symbol":"warehouse"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.05, -0.45] }, "properties": { "title":"Maki Icon: waste-basket", "marker-symbol":"waste-basket"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.10, -0.45] }, "properties": { "title":"Maki Icon: water", "marker-symbol":"water"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.15, -0.45] }, "properties": { "title":"Maki Icon: wetland", "marker-symbol":"wetland"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.20, -0.45] }, "properties": { "title":"Maki Icon: wheelchair", "marker-symbol":"wheelchair"} },
   { "type": "Feature", "geometry":   { "type":"Point", "coordinates":[0.25, -0.45] }, "properties": { "title":"Maki Icon: zoo", "marker-symbol":"zoo"} },
 ]

} </maplink>

  • -number – Automatische Nummerierung 1, 2, 3, …
  • -letter – Automatisch (auto-counter) mit Buchstaben A, B, C, …
  • -number-Code bzw. -letter-Code
    • Verwendung eines unabhängig laufenden auto-counter für Code.
title
Beschriftung des Anzeigeelements

Beispiele

<maplink zoom="16" longitude="6.910340" latitude="50.955561" text="Wikipedia:Lokal K">
{
  "type":       "Feature",
  "geometry":   { "type":        "Point", 
                  "coordinates": [6.910340, 50.955561] },
  "properties": {
    "title":        "WP:Lokal K",
    "marker-color": "228B22" }
}
</maplink>

<maplink zoom="16" longitude="6.910340" latitude="50.955561" text="Wikipedia:Lokal K"> {

 "type":       "Feature",
 "geometry":   { "type":        "Point", 
                 "coordinates": [6.910340, 50.955561] },
 "properties": {
   "title":        "WP:Lokal K",
   "marker-color": "228B22" }

} </maplink>

mapframe

Das Element <mapframe> ist seit Anfang Juni 2022 freigeschaltet.

Es ermöglicht die Einbindung eines statischen Kartenausschnittes mit Markierungen in eine Wiki-Seite.

Die Syntax ist analog zu maplink; mit Ausnahme der hier fehlenden Linkbeschriftung text=. Zusätzliche Parameter sind:

height
Höhe des Ausschnitts in Pixeln
width
Breite des Ausschnitts in Pixeln

Beispiel

<mapframe latitude="48.856667" longitude="2.351667" lang="fr" zoom="5" width="400" height="300"> {

 "type": "FeatureCollection",
 "features": [
   { "type": "Feature",
     "properties": {},
     "geometry": {
       "type": "Point",
       "coordinates": [
         2.351667,
         48.856667    ]
                 }
   }
             ]

} </mapframe> Der Quellcode des zugehörigen mapframes.

<mapframe latitude="48.856667" longitude="2.351667" lang="fr" zoom="5" width="400" height="300">
{
  "type": "FeatureCollection",
  "features": [
    { "type": "Feature",
      "properties": {},
      "geometry": {
        "type": "Point",
        "coordinates": [
          2.351667,
          48.856667    ]
                  }
    }
              ]
}
</mapframe>

Spezial:Map

Die Erweiterung stellt auch die Spezialseite Spezial:Map bereit. Diese kennt folgende Parameter:

/zoom
/latitude
/longitude

Hier ist nur der Kartenmittelpunkt und der Ausschnitt anhand des Zoomfaktors bekannt; alle Einzelheiten gehen verloren.

Hilfsmittel und Hilfen

Debugger / Validierer

Die syntaktische Gültigkeit des Codes kann vor dem Speichern überprüft werden.

Speziell für JSON-Code eignet sich:

  • jsonlint.com – der Code kann auf diese Seite kopiert werden und zeigt die fehlerhaften Zeilen.

Jeder andere JavaScript-Validierer kann ebenso zur ersten Fehlersuche verwendet werden.

Wartung

Es gibt die Kategorie:Wikipedia:Seite mit Karte, in die vom System alle Seiten mit Karten eingeordnet werden.

Die Verwendung von Kartographer in dieser Wikipedia wird außerdem unter Special:PagesWithProp/kartographer protokolliert.

Weitere Informationen

MediaWiki: Help:Extension:Kartographer – Technische Informationen (englisch)
Phabricator – Workboard: #Kartographer (englisch)

Extern (englisch):

  • geojson.org
  • H. Butler, M. Daly, A. Doyle, S. Gillies, S. Hagen, T. Schaub: RFC 7946. – The GeoJSON Format. [Errata: RFC 7946]. August 2016. Standard: [Internet Standards Track]. (28 Seiten – englisch).