Das Wiki für den Bayerischen Wald

Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

google-maps [2018/04/22 06:28]
google-maps [2018/04/22 06:28] (aktuell)
Zeile 1: Zeile 1:
 +====== Google-Maps im Waidlerwiki ======
 +
 +Das Einbinden von interaktiven Karten in waidlerwiki ist ganz einfach. Man übernimmt folgendes Code-Snippet der Google-Maps-API und sucht sich mit einem [[http://​www.multimap.com|geeigneten Webdienst]] die gewünschten Koordinaten für den eigenen Ort. Gegebenenfalls fügt man Marker (Fähnchen, die beim Anklicken einen Text für den entsprechenden Ort aufpoppen lassen) ein. Es können beliebig viele Marker mit jeweils eigenem Text hinzugefügt werden.
 +
 +==== Einfache Beispielkarte mit Marker ====
 +
 +<​code>​
 +<​html><​iframe width="​500"​ scrolling="​no"​ height="​350"​ frameborder="​0" ​ src="​https://​geoportal.bayern.de/​bayernatlas-iframe/?​lon=4612485.01&​lat=5408995.05&​zoom=8&​base=901&​w=500&​h=350&​st=true&​mt=true&​om=true"​ marginwidth="​0"​ marginheight="​0"></​iframe></​html>​
 +
 +The lines of "​lat,​lon,​text"​ represent the individual overlay markers. ​ Each marker must have its own line and be the only information on that line.  "​lat"​ and "​lon"​ are the latitude and longtitude of the marker. "​text"​ is the text to be displayed in the popup when the marker is clicked. ​ The text can include wiki markup.
 +
 +
 +==== Parameter ====
 +
 +  * width --- //999px// (e.g. 500px) width of the google map, default is 400px.
 +  * height --- //999px// (e.g. 500px) height of the google map, default is 300px.
 +  * type --- values: map | satellite | hybrid. default map.
 +  * lat --- values: -90.0 - 90.0; latitude of map centre, negative values are south.
 +  * lon --- values: -180.0 - 180.0; longtitude of map centre, negative values are west.
 +  * zoom --- integer, zoom level, default value 8.  Valid values depend on the map and location.
 +  * controls --- values on | off. default on.  Whether or not to show controls for zooming and panning on the map.
 +
 +The parameters can be in any order. ​
 +
 +
 +==== Google Maps Icons ====
 +
 +Freie Icons liegen im .PNG Format vor mit einer Größe von 32x32 auf dem Google-Server bereit. Es gibt 4 Icon-Verzeichnisse:​
 +
 +  * http://​maps.google.com/​mapfiles/​kml/​pal2/​
 +  * http://​maps.google.com/​mapfiles/​kml/​pal3/​
 +  * http://​maps.google.com/​mapfiles/​kml/​pal4/​
 +  * http://​maps.google.com/​mapfiles/​kml/​pal5/​
 +
 +Jedes Verzeichnis enthält 64 Icons (icon0.png - icon64.png). Die Schattenicons liegen natürlich auch vor und sind mit einem "​s"​ erweitert - z.B. icon15.png hat das Schattenicon icons15.png.
 +
 +Die Größe der Icons wird im Google Maps Code folgendermassen angegeben:
 +
 +<​code>​
 +icon.iconSize=new GSize(32,​32);​
 +icon.shadowSize=new GSize(56,​32);​
 +icon.iconAnchor=new GPoint(16,​32);​
 +icon.infoWindowAnchor=new GPoint(16,​0);​
 +</​code>​
 +
 +[[http://​econym.googlepages.com/​geicons.htm
 +|Hier kann man sich die Icons ansehen...]]
 +
 +===== siehe auch =====
 +
 +  * [[Interaktive Karten]]
 +  * [[Koordinatenermittlung]]
 +  * [[http://​wiki.splitbrain.org/​plugin:​google_maps|Anleitung zum Google-Maps-Plugin]]
 +  * [[waidlerwiki]]
 +  * http://​www.econym.demon.co.uk/​googlemaps/​custom.htm
 +
  

google-maps.txt · Zuletzt geändert: 2018/04/22 06:28 (Externe Bearbeitung)

test