[ class tree: plugins ] [ index: plugins ] [ all elements ]

Procedural File: google_maps.php

Source Location: /plugins/google_maps.php

Page Details

google_maps -- provides for placing google maps on image and album pages.

Updated to use the standard phoogle class

Plugin Option 'gmaps_apikey' is used to supply the sit Google Maps API key.

Author:  Dustin Brewer (mankind), Stephen Billard (sbillard)
Version:  1.2.0
Classes
Class Description
google_mapsOptions Plugin option handling class
Includes
require_once (SERVERPATH.'/'.ZENFOLDER.'/plugins/google_maps/phoogle.php') [line 58]
[ Top ]


Functions
addPoint  [line 86]

Adds a geoPoint after first insuring it uses periods for the decimal separator

Parameters:
string   $lat:  Latitude of the point
string   $long:  Longitude of the point
   $html: 


void addPoint( string $lat, string $long, $html  )

[ Top ]
hasMapData  [line 70]

Returns true if the curent image has EXIF location data


bool hasMapData( )

[ Top ]
printAlbumMap  [line 147]

Causes a Google map to be printed based on the gps data in all the images in the album

Parameters:
string   $zoomlevel:  the zoom in for the map. NULL will use the default (auto-zoom based on points)
string   $type:  of map to produce: allowed values are G_NORMAL_MAP | G_SATELLITE_MAP | G_HYBRID_MAP
int   $width:  is the image width of the map. NULL will use the default
int   $height:  is the image height of the map. NULL will use the default
string   $text:  text for the pop-up link
bool   $toggle:  set to true to hide initially
string   $id:  DIV id


void printAlbumMap( [string $zoomlevel = NULL], [string $type = NULL], [int $width = NULL], [int $height = NULL], [string $text = ''], [bool $toggle = false], [string $id = 'googlemap']  )

[ Top ]
printImageMap  [line 100]

Causes a Google map to be printed based on the gps data in the current image

Parameters:
string   $zoomlevel:  the zoom in for the map
int   $width:  is the image width of the map. NULL will use the default
int   $height:  is the image height of the map. NULL will use the default
string   $text:  text for the pop-up link
bool   $toggle:  set to true to hide initially
string   $id:  DIV id


void printImageMap( [string $zoomlevel = '6'], [int $width = NULL], [int $height = NULL], [string $text = ''], [bool $toggle = false], [string $id = 'googlemap']  )

[ Top ]


Documentation generated on Tue, 30 Sep 2008 20:23:26 +0200 by phpDocumentor 1.4.1