User:Xavi/Templates/GeoXOGoogle: Difference between revisions

From OLPC
Jump to navigation Jump to search
 
(No difference)

Latest revision as of 15:30, 20 December 2009

Lat: 42.36 Long: -71.09


Builds a link to a Google map for the given coordinates, optionally specifying how the link will display, and the zoom & type in the map. It defaults to the OLPC-HQ in Cambridgegoogle search.

Usage

{{User:Xavi/Templates/GeoXOGoogle
 | lat     =  42.362603       <!-- Latitude  — default:  42.362603 — negative = south -->
 | long    = -71.085663       <!-- Longitude — default: -71.085663 — negative = west  -->
 | zoom    =  15   <!-- OPTIONAL — Zoom level [0-19] (15 by default - 19 is highest zoom) -->
 | type    =   h   <!-- OPTIONAL — { h-ybrid | k-satellite } -->
 | display         <!-- OPTIONAL — if no text is provided, displays the Lat & Long values -->
 }}

Samples

{{:User:Xavi/Templates/GeoXOGoogle      => 
 | lat  = -34.291
 | long = -56.389
 | zoom = 10
 | type = k
 | display = Cardal
 }}

Cardal

{{:User:Xavi/Templates/GeoXOGoogle      => 
 | lat  = -34.291
 | long = -56.389
 }}

Lat: -34.29 Long: -56.39