GoogleMaps.php

Aus Wiki.csoft.at

Inhaltsverzeichnis

Beschreibung

Google Maps anzeigen

Syntax

This extension defines a <googlemap> tag. Legal attributes are:

  • width (in pixels)
  • height (in pixels)
  • lat (the center latitude on the map)
  • lon (the center longitude on the map)
  • zoom (the zoom level; 0 is the furthest away, 18 is the closest in)
  • type (legal values are normal (or, equivalently, map), hybrid, and satellite; defaults to hybrid)
  • controls (small creates +/- zoom buttons, medium has zoom buttons and pan buttons, and large has pan buttons with a sliding scale for zoom)

All attributes are optional. In the content of the tag, you can define one marker per line. Each line should have the latitude, then a comma, then the longitude, then a comma, then a label for the point. The label can include wiki mark-up. So for example:

<googlemap lat="48.17745480520087" lon="16.324524879455566" width="400" height="300" zoom="17">
48.17745480520087,16.324524879455566,[[CSOFT|CSOFT Allerstorfer und Radl OEG]] http://www.csoft.at Ratschkygasse 33/35, 1120 Wien
</googlemap>

Ergebnis

<googlemap lat="48.17745480520087" lon="16.324524879455566" width="400" height="300" zoom="17"> 48.17745480520087,16.324524879455566,CSOFT Allerstorfer und Radl OEG http://www.csoft.at Ratschkygasse 33/35, 1120 Wien </googlemap>

Siehe auch

Vorlage:Siehe auch Mediawiki Parser Extensions

Weblinks