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

Procedural File: google_maps.php

Source Location: /zp-extensions/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), Eric Bayard (babar)
Classes
Class Description
google_mapsOptions Plugin option handling class
Includes
require_once (SERVERPATH.'/'.ZENFOLDER.'/'.PLUGIN_FOLDER.'/'.substr(basename(__FILE__),0,-4).'/phoogle.php') [line 97]
[ Top ]


Functions
addPoint  [line 125]

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 109]

Returns true if the current image has EXIF location data


bool hasMapData( )

[ Top ]
printAlbumMap  [line 252]

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
string   $defaultmaptype:  the starting display of the map valid values are G_NORMAL_MAP | G_SATELLITE_MAP | G_HYBRID_MAP | G_PHYSICAL_MAP | G_SATELLITE_3D_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
int   $firstPageImages:  the number of images on transition pages.
array   $mapselections:  array of the maps to be used.
bool   $addphysical:  Adds physical map.
bool   $addwiki:  Adds wikipedia georeferenced data on your maps
string   $background:  the background color for the map
string   $mapcontrol:  values None | Small | Large
string   $maptypecontrol:  values Buttons | List
string   $customJS:  the extra javascript needed by the theme


void printAlbumMap( [string $zoomlevel = NULL], [string $defaultmaptype = NULL], [int $width = NULL], [int $height = NULL], [string $text = ''], [bool $toggle = true], [string $id = 'googlemap'], [int $firstPageImages = 0], [array $mapselections = NULL], [bool $addwiki = NULL], [string $background = NULL], [string $mapcontrol = NULL], [string $maptypecontrol = NULL], [string $customJS = NULL], bool $addphysical  )

[ Top ]
printImageMap  [line 170]

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
string   $defaultmaptype:  the starting display of the map valid values are G_NORMAL_MAP | G_SATELLITE_MAP | G_HYBRID_MAP | G_PHYSICAL_MAP | G_SATELLITE_3D_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
array   $mapselections:  array of the maps to be used.
bool   $addphysical:  Adds physical map.
bool   $addwiki:  Adds wikipedia georeferenced data on your maps
string   $background:  the background color for the map
string   $mapcontrol:  values None | Small | Large
string   $maptypecontrol:  values Buttons | List
string   $customJS:  the extra javascript needed by the theme


void printImageMap( [string $zoomlevel = NULL], [string $defaultmaptype = NULL], [int $width = NULL], [int $height = NULL], [string $text = NULL], [bool $toggle = true], [string $id = 'googlemap'], [array $mapselections = NULL], [bool $addwiki = NULL], [string $background = NULL], [string $mapcontrol = NULL], [string $maptypecontrol = NULL], [string $customJS = NULL], bool $addphysical  )

[ Top ]
setupAllowedMaps  [line 130]
Parameters:
   $defaultmap: 
   $allowedmaps: 


void setupAllowedMaps( $defaultmap, $allowedmaps  )

[ Top ]


Documentation generated on Mon, 09 Aug 2010 17:24:03 +0200 by phpDocumentor 1.4.1