Google Maps Extensions/GMap: Unterschied zwischen den Versionen

GISWiki - Das freie Portal für Geoinformatik (GIS)
Wechseln zu: Navigation, Suche
Zeile 26: Zeile 26:
 
Click the map to add coordinates to the box. This allows you to easily buld your own polylines.
 
Click the map to add coordinates to the box. This allows you to easily buld your own polylines.
  
===Code===
+
===Sample===
 
  <nowiki><gmap lat="40.748" long="-73.886" zoom="5" helper="line" width="500" height="400">
 
  <nowiki><gmap lat="40.748" long="-73.886" zoom="5" helper="line" width="500" height="400">
 
points:
 
points:
Zeile 43: Zeile 43:
 
</gmap>
 
</gmap>
 
Click on the markers. You can use wiki-syntax in them.
 
Click on the markers. You can use wiki-syntax in them.
===Code===
+
===Sample===
 
  <nowiki><gmap lat="40.7" long="-73.8" zoom="7" width="500" height="300">
 
  <nowiki><gmap lat="40.7" long="-73.8" zoom="7" width="500" height="300">
 
points:
 
points:
Zeile 53: Zeile 53:
 
<gmap lat="35" long="-95" zoom="14" type="satellite" helper="on"></gmap>
 
<gmap lat="35" long="-95" zoom="14" type="satellite" helper="on"></gmap>
 
Click on the textbox to update it with the coordinates the map is centered on.
 
Click on the textbox to update it with the coordinates the map is centered on.
===Code===
+
===Sample===
 
  <nowiki><gmap lat="35" long="-95" zoom="14" type="satellite" helper="on"></gmap></nowiki>
 
  <nowiki><gmap lat="35" long="-95" zoom="14" type="satellite" helper="on"></gmap></nowiki>

Version vom 22. Februar 2006, 19:02 Uhr

from http://www.schwen.de/wiki/GMap


see also: Google Maps Extensions

This extension lets you embed an arbitrary amount of fully interactive Google Maps objects into your wikipages. The mapcontrols appear when you move the mouse over the map, and disappear when you leave it. Two helper modes are available, outputting either current map view settings or coordinates on click, making it easy to choose a map locaton to display and to create markers and lines.

Three examples of the GMap extension:

Map with lines, markers and helper="line"

<gmap lat="40.748" long="-73.886" zoom="5" helper="line" width="500" height="400"> points: 40.763905|-73.826374|Flushing YMCA. website 40.759741|-73.828983|Main Street station (7 line)

lines: ff0000|3|0.5|40.759741|-73.828983|40.759220|-73.831043|40.758635|-73.832674|40.758180|-73.834305|40.757855|-73.836021|40.757335|-73.837652|40.755742|-73.841643|40.753726|-73.848510|40.750931|-73.857822|40.750085|-73.860569|40.749533|-73.865504|40.748948|-73.870826|40.748232|-73.877950|40.747582|-73.884215|40.746314|-73.896103|40.745501|-73.903527|40.745306|-73.905587|40.745306|-73.906960|40.745176|-73.908162|40.744721|-73.910480|40.742998|-73.916187|40.742900|-73.916702|40.742900|-73.917431|40.743583|-73.923376|40.744672|-73.932538|40.744770|-73.933139|40.745322|-73.933868|40.749110|-73.937838|40.749338|-73.938096|40.749663|-73.938525|40.750264|-73.939641|40.751142|-73.941658|40.751207|-73.942087|40.751045|-73.942516|40.748444|-73.944747|40.745973|-73.945606|40.745745|-73.945649|40.744315|-73.944705|40.744054|-73.944662|40.743729|-73.944790|40.743534|-73.945005|40.742429|-73.947880 </gmap> Click the map to add coordinates to the box. This allows you to easily buld your own polylines.

Sample

<gmap lat="40.748" long="-73.886" zoom="5" helper="line" width="500" height="400">
points:
40.763905|-73.826374|Flushing YMCA. [http://www.ymcanyc.org/sub.php?p=services&sp=guest/guestbrookqueens website]
40.75974059207392|-73.82898330688477|Main Street station (7 line)

lines:
ff0000|3|0.5|40.759741|-73.828983|40.759220|-73.831043|40.758635|-73.832674|40.758180|-73.834305|40.757855|-73.836021|40.757335|-73.837652|40.755742|-73.841643|40.753726|-73.848510|40.750931|-73.857822|40.750085|-73.860569|40.749533|-73.865504|40.748948|-73.870826|40.748232|-73.877950|40.747582|-73.884215|40.746314|-73.896103|40.745501|-73.903527|40.745306|-73.905587|40.745306|-73.906960|40.745176|-73.908162|40.744721|-73.910480|40.742998|-73.916187|40.742900|-73.916702|40.742900|-73.917431|40.743583|-73.923376|40.744672|-73.932538|40.744770|-73.933139|40.745322|-73.933868|40.749110|-73.937838|40.749338|-73.938096|40.749663|-73.938525|40.750264|-73.939641|40.751142|-73.941658|40.751207|-73.942087|40.751045|-73.942516|40.748444|-73.944747|40.745973|-73.945606|40.745745|-73.945649|40.744315|-73.944705|40.744054|-73.944662|40.743729|-73.944790|40.743534|-73.945005|40.742429|-73.947880
</gmap>

Map with markers

<gmap lat="40.7" long="-73.8" zoom="7" width="500" height="300"> points:

40.76445385284412|-73.97450923919678| I wish I lived here!

40.59085093941084|-73.79788041114807|NYCSub A Beach67 Gaston.jpg </gmap> Click on the markers. You can use wiki-syntax in them.

Sample

<gmap lat="40.7" long="-73.8" zoom="7" width="500" height="300">
points:
40.76445385284412|-73.97450923919678|[[image:Ich_logo.svg|none|40px]] I wish I lived [[:en:Plaza_Hotel|here]]!
40.59085093941084|-73.79788041114807|[[Image:NYCSub A Beach67 Gaston.jpg|100px]]
</gmap>

Map in satellite mode with helper="on"

<gmap lat="35" long="-95" zoom="14" type="satellite" helper="on"></gmap> Click on the textbox to update it with the coordinates the map is centered on.

Sample

<gmap lat="35" long="-95" zoom="14" type="satellite" helper="on"></gmap>