User:Xavi/Templates/GeoXOGoogle

From OLPC

Jump to: navigation, search

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

<tr><td> {{:User:Xavi/Templates/GeoXOGoogle => | lat = -34.291 | long = -56.389 }} </td><td valign="top">
Lat: -34.29 Long: -56.39 </td></tr> </table>
Personal tools
{{:User:Xavi/Templates/GeoXOGoogle      => 
 | lat  = -34.291
 | long = -56.389
 | zoom = 10
 | type = k
 | display = Cardal
 }}

Cardal</tt>

  • Log in
  • Login with OpenID
  • About OLPC
    About the laptop
    About the tablet
    Projects
    OLPC wiki
    Toolbox