Hilfe:Karten: Unterschied zwischen den Versionen

Aus FürthWiki

K (typo)
(+ Bayern)
Zeile 27: Zeile 27:
<pre>
<pre>
<display_map zoom=17>
<display_map zoom=17>
   Rathaus, Fürth, Deutschland
   Rathaus, Fürth, Bayern, Deutschland
</display_map>
</display_map>
</pre>
</pre>
<display_map zoom=17>
<display_map zoom=17>
   Rathaus, Fürth, Deutschland
   Rathaus, Fürth, Bayern, Deutschland
</display_map>
</display_map>
<br>
<br>
Zeile 38: Zeile 38:
<pre>
<pre>
<display_map zoom=17>
<display_map zoom=17>
   Erlanger Straße 1, Fürth, Deutschland
   Erlanger Straße 1, Fürth, Bayern, Deutschland
</display_map>
</display_map>
</pre>
</pre>
<display_map zoom=17>
<display_map zoom=17>
   Erlanger Straße 1, Fürth, Deutschland
   Erlanger Straße 1, Fürth, Bayern, Deutschland
</display_map>
</display_map>
<br>
<br>
Zeile 49: Zeile 49:
<pre>
<pre>
<display_map zoom=17>
<display_map zoom=17>
   Elsterstraße, Fürth, Deutschland
   Elsterstraße, Fürth, Bayern, Deutschland
</display_map>
</display_map>
</pre>
</pre>
<display_map zoom=17>
<display_map zoom=17>
   Elsterstraße, Fürth, Deutschland
   Elsterstraße, Fürth, Bayern, Deutschland
</display_map>
</display_map>
<br>
<br>
Zeile 60: Zeile 60:
<pre>
<pre>
<display_map>
<display_map>
   Stadtpark, Fürth, Deutschland
   Stadtpark, Fürth, Bayern, Deutschland
</display_map>
</display_map>
</pre>
</pre>
<display_map>
<display_map>
   Stadtpark, Fürth, Deutschland
   Stadtpark, Fürth, Bayern, Deutschland
</display_map>
</display_map>
<br>
<br>
Zeile 71: Zeile 71:
<pre>
<pre>
<display_map>
<display_map>
   Ronhof, Fürth, Deutschland
   Ronhof, Fürth, Bayern, Deutschland
</display_map>
</display_map>
</pre>
</pre>
<display_map>
<display_map>
   Ronhof, Fürth, Deutschland
   Ronhof, Fürth, Bayern, Deutschland
</display_map>
</display_map>
<br>
<br>
Zeile 104: Zeile 104:
<pre>
<pre>
<display_map>
<display_map>
   Rathaus, Fürth, Deutschland
   Rathaus, Fürth, Bayern, Deutschland
   Stadttheater, Fürth, Deutschland
   Stadttheater, Fürth, Bayern, Deutschland
   Stadtpark, Fürth, Deutschland
   Stadtpark, Fürth, Bayern, Deutschland
   Moststraße, Fürth, Deutschland
   Moststraße, Fürth, Bayern, Deutschland
   49.4800525, 10.9885848
   49.4800525, 10.9885848
</display_map>
</display_map>
</pre>
</pre>
<display_map>
<display_map>
   Rathaus, Fürth, Deutschland
   Rathaus, Fürth, Bayern, Deutschland
   Stadttheater, Fürth, Deutschland
   Stadttheater, Fürth, Bayern, Deutschland
   Stadtpark, Fürth, Deutschland
   Stadtpark, Fürth, Bayern, Deutschland
   Moststraße, Fürth, Deutschland
   Moststraße, Fürth, Bayern, Deutschland
   49.4800525, 10.9885848
   49.4800525, 10.9885848
</display_map>
</display_map>
Zeile 125: Zeile 125:
<pre>
<pre>
<display_map zoom=17>
<display_map zoom=17>
   Rathaus, Fürth, Deutschland ~~ [[Rathaus]]
   Rathaus, Fürth, Bayern, Deutschland ~~ [[Rathaus]]
</display_map>
</display_map>
</pre>
</pre>
<display_map zoom=17>
<display_map zoom=17>
   Rathaus, Fürth, Deutschland ~~ [[Rathaus]]
   Rathaus, Fürth, Bayern, Deutschland ~~ [[Rathaus]]
</display_map>
</display_map>
<br>
<br>
Zeile 137: Zeile 137:
<pre>
<pre>
<display_map zoom=17>
<display_map zoom=17>
   Rathaus, Fürth, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
   Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
</display_map>
</display_map>
</pre>
</pre>
<display_map zoom=17>
<display_map zoom=17>
   Rathaus, Fürth, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
   Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
</display_map>
</display_map>
<br>
<br>
Zeile 160: Zeile 160:
=== Mitte der ganzen Karte ===
=== Mitte der ganzen Karte ===
<pre>
<pre>
<display_map centre="Innenstadt, Fürth, Deutschland">
<display_map centre="Innenstadt, Fürth, Bayern, Deutschland">
   Stadtpark, Fürth, Deutschland
   Stadtpark, Fürth, Bayern, Deutschland
</display_map>
</display_map>
</pre>
</pre>
<display_map centre="Innenstadt, Fürth, Deutschland">
<display_map centre="Innenstadt, Fürth, Bayern, Deutschland">
   Stadtpark, Fürth, Deutschland
   Stadtpark, Fürth, Bayern, Deutschland
</display_map>
</display_map>
<br>
<br>
Zeile 217: Zeile 217:
=== Vorlage ohne Box ===
=== Vorlage ohne Box ===
<pre>
<pre>
<display_map centre="Innenstadt, Fürth, Deutschland" zoom=13 width=400 height=300 fullscreen=yes resizable=yes>
<display_map centre="Innenstadt, Fürth, Bayern, Deutschland" zoom=13 width=400 height=300 fullscreen=yes resizable=yes>
   Rathaus, Fürth, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
   Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
   Stadtpark, Fürth, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
   Stadtpark, Fürth, Bayern, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
   Moststraße 1, Fürth, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
   Moststraße 1, Fürth, Bayern, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
   Moststraße, Fürth, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
   Moststraße, Fürth, Bayern, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
   49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
   49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
   90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
   90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
</display_map>
</display_map>
</pre>
</pre>
<display_map centre="Innenstadt, Fürth, Deutschland" zoom=13 width=400 height=300 fullscreen=yes resizable=yes>
<display_map centre="Innenstadt, Fürth, Bayern, Deutschland" zoom=13 width=400 height=300 fullscreen=yes resizable=yes>
   Rathaus, Fürth, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
   Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
   Stadtpark, Fürth, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
   Stadtpark, Fürth, Bayern, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
   Moststraße 1, Fürth, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
   Moststraße 1, Fürth, Bayern, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
   Moststraße, Fürth, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
   Moststraße, Fürth, Bayern, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
   49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
   49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
   90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
   90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
Zeile 239: Zeile 239:
<pre>
<pre>
{{ Box | Box-Überschrift |
{{ Box | Box-Überschrift |
   <display_map centre="Innenstadt, Fürth, Deutschland" zoom=13 fullscreen=yes resizable=yes>
   <display_map centre="Innenstadt, Fürth, Bayern, Deutschland" zoom=13 fullscreen=yes resizable=yes>
     Rathaus, Fürth, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
     Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
     Stadtpark, Fürth, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
     Stadtpark, Fürth, Bayern, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
     Moststraße 1, Fürth, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
     Moststraße 1, Fürth, Bayern, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
     Moststraße, Fürth, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
     Moststraße, Fürth, Bayern, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
     49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
     49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
     90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
     90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
Zeile 250: Zeile 250:
</pre>
</pre>
{{ Box | Box-Überschrift |
{{ Box | Box-Überschrift |
   <display_map centre="Innenstadt, Fürth, Deutschland" zoom=13 fullscreen=yes resizable=yes>
   <display_map centre="Innenstadt, Fürth, Bayern, Deutschland" zoom=13 fullscreen=yes resizable=yes>
     Rathaus, Fürth, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
     Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
     Stadtpark, Fürth, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
     Stadtpark, Fürth, Bayern, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
     Moststraße 1, Fürth, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
     Moststraße 1, Fürth, Bayern, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
     Moststraße, Fürth, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
     Moststraße, Fürth, Bayern, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
     49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
     49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
     90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
     90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]

Version vom 8. Juni 2025, 17:06 Uhr

Bei einigen Kategorien werden Karten automatisch über die Info-Boxen mit eingebunden, was natürlich die unbedingt zu bevorzugende Methode ist. Will man jedoch besondere Karten nur für ein Thema (Artikel) in die Seite einbetten, so können dafür Karten mittels <display_map> eingebunden werden.

Anstelle hier lang und breit den Syntax vorzustellen, folgen nun Beispiele, was alles möglich ist und wie dazu der Quelltext aussieht. Man kann auch die Quelltext-Elemente beliebig kombinieren.

Die Vorlagen unten können als Basis genommen werden zur Einbindung in die eigene Seite.

Einfach ausprobieren!

Wenn etwas nicht geht, siehe Hinweise unten oder notfalls Benutzer:HeikoK fragen.

Koordinate

<display_map zoom=17>
  49.4800525, 10.9885848
</display_map>
Die Karte wird geladen …


Objekte (mit Namen)

Gebäude

<display_map zoom=17>
  Rathaus, Fürth, Bayern, Deutschland
</display_map>
Die Karte wird geladen …


Adresse

<display_map zoom=17>
  Erlanger Straße 1, Fürth, Bayern, Deutschland
</display_map>
Die Karte wird geladen …


Straße

<display_map zoom=17>
  Elsterstraße, Fürth, Bayern, Deutschland
</display_map>
Die Karte wird geladen …


Fläche (z.B. Park)

<display_map>
  Stadtpark, Fürth, Bayern, Deutschland
</display_map>
Die Karte wird geladen …


Stadtteil

<display_map>
  Ronhof, Fürth, Bayern, Deutschland
</display_map>
Die Karte wird geladen …


Ort

<display_map>
  Fürth, Deutschland
</display_map>
Die Karte wird geladen …


Postleitzahl

<display_map>
  90766 Fürth, Deutschland
</display_map>
Die Karte wird geladen …


Mehrere Objekte

<display_map>
  Rathaus, Fürth, Bayern, Deutschland
  Stadttheater, Fürth, Bayern, Deutschland
  Stadtpark, Fürth, Bayern, Deutschland
  Moststraße, Fürth, Bayern, Deutschland
  49.4800525, 10.9885848
</display_map>
Die Karte wird geladen …


Pins (Nadeln in der Karte)

Anklickbarer Pin mit Link zu Artikel

<display_map zoom=17>
  Rathaus, Fürth, Bayern, Deutschland ~~ [[Rathaus]]
</display_map>
Die Karte wird geladen …


Anklickbarer Pin mit PopUp und Link zu Artikel

Maus nur über Nadel ziehen, aber nicht klicken und es erscheint der Text
<display_map zoom=17>
  Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
</display_map>
Die Karte wird geladen …


Formatierungen

Breite, Höhe und Zoom der ganzen Karte

<display_map zoom=7 width=400 height=200>
  Fürth, Deutschland
</display_map>
Die Karte wird geladen …


Mitte der ganzen Karte

<display_map centre="Innenstadt, Fürth, Bayern, Deutschland">
  Stadtpark, Fürth, Bayern, Deutschland
</display_map>
Die Karte wird geladen …


Ausrichtung rechts

<div class="floatright">
  <display_map zoom=7 width=400 height=200>
    Fürth, Deutschland
  </display_map>
</div>
Textzeile 1

Textzeile 2

Textzeile 3
Die Karte wird geladen …

Textzeile 1

Textzeile 2

Textzeile 3

Vollbild und Größenänderung erlauben

Sollte eigentlich immer erlaubt werden, die da sind:

  • Vollbild-Button
  • Kartengröße veränderbar wahlweise über
    • untere rechte Ecke
    • untere Kante
    • rechte Kante
<display_map fullscreen=yes resizable=yes>
  Fürth, Deutschland
</display_map>
Die Karte wird geladen …


Vorlagen

Die folgenden Beispiele mit allen möglichen Optionen sollen als Vorlagen zur Einbindung in eigene Seiten dienen. Je nach Bedarf können unnötige Teile bei Übernahme gelöscht werden.

Vorlage ohne Box

<display_map centre="Innenstadt, Fürth, Bayern, Deutschland" zoom=13 width=400 height=300 fullscreen=yes resizable=yes>
  Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
  Stadtpark, Fürth, Bayern, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
  Moststraße 1, Fürth, Bayern, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
  Moststraße, Fürth, Bayern, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
  49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
  90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
</display_map>
Die Karte wird geladen …


Vorlage mit Box

{{ Box | Box-Überschrift |
  <display_map centre="Innenstadt, Fürth, Bayern, Deutschland" zoom=13 fullscreen=yes resizable=yes>
    Rathaus, Fürth, Bayern, Deutschland ~ Fürther Rathaus - hier tagt auch der Stadtrat ~ [[Rathaus]]
    Stadtpark, Fürth, Bayern, Deutschland ~ PopUp-Text Fläche ~ [[PopUp-Link]]
    Moststraße 1, Fürth, Bayern, Deutschland ~ PopUp-Text Adresse ~ [[PopUp-Link]]
    Moststraße, Fürth, Bayern, Deutschland ~ PopUp-Text Straße ~ [[PopUp-Link]]
    49.4800525, 10.9885848 ~ PopUp-Text Koordinate ~ [[PopUp-Link]]
    90762 Fürth, Deutschland ~ PopUp-Text Postleitzahl ~ [[PopUp-Link]]
  </display_map>
}}
Stadtwappen.svg
  Box-Überschrift
Die Karte wird geladen …


Beispiel-Seiten

Hinweise

  • Namensangaben für Orte, Straßen usw. gehen nur mit Namen, die in OpenStreetMap so eingetragen sind
  • Namensangaben müssen eindeutig sein
  • Namen sind gegenüber Koordinaten zu bevorzugen, wenn ziemlich auszuschließen ist, dass sich der Name über die Zeit hinweg ändern könnte (außer der Himmel stürzt auf uns ein). Beispiel: Die „Gustavstraße“ wird höchstwahrscheinlich ewig so heißen. Vorsicht ist geboten und besser ist die Koordinate zu verwenden bei z.B. privatwirtschaftlichen Objekten. Negativ-Beispiel: „City-Center“ heißt jetzt „Flair“
    • Technischer Hintergrund: Die Geodaten von OpenStreetMap basieren meist auf Satelliten-Bildern (ja, da haben wirklich Leute die Straßen, Häuser usw. händisch abgezeichnet!). Da es inzwischen bessere (feiner aufgelöste) Satelliten-Bilder gibt, werden später manchmal Objekte in OpenStreetMap genauer nachgepflegt (verschoben). Wenn man nun im FürthWiki eine Koordinate angegeben hat, so kann es in solch einem Fall sein, dass die Koordinaten-Nadel nicht mehr aufs bewünschte Objekt zeigt.

Weblinks

  • MediaWiki-Extension Maps - online (nur für Experten!)

Siehe auch