Difference between revisions of "User:Dseifried/osd600"

From CDOT Wiki
Jump to: navigation, search
(Adding documentatioon for google maps)
 
(OSD600)
Line 7: Line 7:
 
===Examples===
 
===Examples===
  
.googlemap({
+
googlemap({
 
         start: 0, // seconds
 
         start: 0, // seconds
 
         end: 20, // seconds
 
         end: 20, // seconds
Line 17: Line 17:
 
       } );
 
       } );
  
.googlemap({
+
googlemap({
 
         start: 0, // seconds
 
         start: 0, // seconds
 
         end: 20, // seconds
 
         end: 20, // seconds
Line 28: Line 28:
 
         pitch: "1"
 
         pitch: "1"
 
       } );
 
       } );
.googlemap({
+
googlemap({
 
         start: 0, // seconds
 
         start: 0, // seconds
 
         end: 30, // seconds
 
         end: 30, // seconds
Line 41: Line 41:
  
 
===Syntax===
 
===Syntax===
.googlemap({
+
googlemap({
 
         start:
 
         start:
 
         end:
 
         end:
Line 52: Line 52:
 
OR
 
OR
  
.googlemap({
+
googlemap({
 
         start:
 
         start:
 
         end:
 
         end:

Revision as of 20:09, 23 February 2011

OSD600

GoogleMaps Documentation

Name

googlemap

Examples

googlemap({

       start: 0, // seconds
       end: 20, // seconds
       type: "ROADMAP",
       target: "map",
       lat: 43.665429,
       lng: -79.403323,
       zoom: "10"
     } );

googlemap({

       start: 0, // seconds
       end: 20, // seconds
       type: "STREETVIEW",
       target: "map1",
       lat: 43.665429,
       lng: -79.403323,
       zoom: "1",
       heading: "0",
       pitch: "1"
     } );

googlemap({

       start: 0, // seconds
       end: 30, // seconds
       type: "ROADMAP",
       target: "map2",
       location:"boston",
       zoom: 15
     } );

Description

Adds a map to the target div centered on the location specified by the user. Options parameter will need a start, end, target, and either a lat and lng or a location. Additional optional parameters are zoom, type, and for Streetview heading and pitch.

Syntax

googlemap({

       start:
       end:
       type:
       target:
       lat:
       lng:
     } );

OR

googlemap({

       start:
       end:
       type:
       target:
        location:
     } );

Parameters

Start: is the time that you want this plug-in to execute (Int) End: is the time that you want this plug-in to stop executing (Int) Target: is the id of the DOM element that you want the map to appear in. This element must be in the DOM (String) Lat and Lang: the coordinates of the map must be present if location is not specified. (Int) Location: the address you want the map to display, bust be present if lat and log are not specified. Type: [optional] either: HYBRID (default), ROADMAP, SATELLITE, TERRAIN, STREETVIEW (String) Zoom: [optional] defaults to 0 (Int) Heading: [optional] STREETVIEW orientation of camera in degrees relative to true north (0 north, 90 true east, ect) Pitch: [optional] STREETVIEW vertical orientation of the camera (between 1 and 3 is recommended)

Returns

None