Personal tools
Jump to: navigation, search

Using the Google Maps plugin you can now add map in your articles.

<googlemap lat="xx.xx" lon="yy.yy" zoom="x" type="value" width="xx" height ="xx">
xx,yy , Some text here.
</googlemap> 

Tag Attributes

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

  • width (in pixels; defaults to 450)
  • height (in pixels; defaults to 300)
  • lat (the center latitude on the map,)
  • lon (the center longitude on the map)
  • zoom (the zoom level; 0 is the furthest away, 17 is the closest in)
  • type (legal values are normal (or, equivalently, map), terrain (new in 0.9.0), hybrid, and satellite; defaults to hybrid)
  • controls (small creates +/- zoom buttons, medium has zoom buttons and pan buttons, large has pan buttons with a sliding scale for zoom, and none has no buttons)
  • selector (show the map/hybrid/satellite selector? Legal values are yes (default) and no.)
  • scale (show the distance scale? Legal values are yes and no (default).)
  • overview (show the inset navigation map? Legal values are yes and no (default).)
  • icons (URL template for custom markers, with "{label}" where the name of the icon will be inserted; defaults to "http://maps.google.com/mapfiles/marker{label}.png")
  • icon (URL for markers without an icon specified; defaults to http://maps.google.com/mapfiles/marker.png)
  • doubleclick new in 0.7.6 (what to do when the user double-clicks? legal values are recenter (default) and zoom)
  • zoomstyle new in 0.7.6 (legal values are fast (default) and smooth, also known as continuous zooming; only works in some browsers)
  • stroke new in 0.8.0 (width of paths, in pixels)
  • version new in 0.9.0 (specifies syntax version, see below; legal values are "0" (default) and "0.9")
  • scrollwheel new in 0.9.0 (define scroll wheel behavior; nothing (default) or zoom)

All attributes are optional.
Latitude and Longitude determines the center of the map to display. The default coordinates are 14.655216, 121.068091, which points the location of the University of the Philippines.

Sample

<googlemap zoom="16" type="sattelite">
14.654849751967735, 121.06487542390823, The place to be!
</googlemap>


The map shows where Oble is.

  • This page was last modified on 29 July 2009, at 13:46.
  • This page has been accessed 4,234 times.
The Fine Print: contents on this site are owned by whoever posted them (as indicated on the page History). Neither the DILC nor the University is responsible for them in any way. DILC reserves the right to delete them if they are deemed in violation of the University's Acceptable Use Policy and other applicable laws.