GoogleMap.php
This is plugin for display pictures on a Google Map Uses : CodeIgniter Google Maps API V3 Class (hacked for zenphoto needs) (https://github.com/BIOSTALL/CodeIgniter-Google-Maps-V3-API-Library) markerClustererPlus library 2.0.15 (http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/) overlappingMarkerSpiderfier library 0.3 (https://github.com/jawj/OverlappingMarkerSpiderfier)
NOTE: To calculate the correct geolocation of images, this plugin needs to process certain EXIF values in pairs.
This means that you have to enable the following Metadata fields in Options => Image => Metadata:
- Latitude + Latitude Reference
- Longitude + Longitude Reference
- (and optionally Altitude + Altitude Reference)
Tags
Table of Contents
Classes
- GoogleMap
- googleMap
- CI_load
- CI_jsmin
- codeIgniter_kludge
Constants
- BASEPATH = true
Functions
- log_message() : mixed
- get_instance() : mixed
- omsAdditions() : mixed
- getGeoCoord() : mixed
- $returns coordinate informations for an image
- addGeoCoord() : mixed
- Add a point to a map object
- getImageGeodata() : mixed
- Gathers the data for an image
- getAlbumGeodata() : mixed
- Gathers the map data for an album
- printGoogleMap() : mixed
- Output the google map
Constants
BASEPATH
public
mixed
BASEPATH
= true
Functions
log_message()
log_message(mixed $class, mixed $msg) : mixed
Parameters
- $class : mixed
- $msg : mixed
get_instance()
get_instance() : mixed
omsAdditions()
omsAdditions() : mixed
getGeoCoord()
$returns coordinate informations for an image
getGeoCoord( $image) : mixed
Parameters
addGeoCoord()
Add a point to a map object
addGeoCoord( $map, $coord) : mixed
Parameters
getImageGeodata()
Gathers the data for an image
getImageGeodata( $image, $map) : mixed
Parameters
getAlbumGeodata()
Gathers the map data for an album
getAlbumGeodata( $album, $map) : mixed
Parameters
printGoogleMap()
Output the google map
printGoogleMap([string $text = NULL ][, string $id = NULL ][, string $hide = NULL ][, object $obj = NULL ][, function $callback = NULL ]) : mixed
Parameters
- $text : string = NULL
-
text for the "toggle" link that shows/hides the map. Set empty to omit (then Map is always displayed)
- $id : string = NULL
-
used to set the IDs for the toggle href element ($id_toggle) and the map element ($id_data)
- $hide : string = NULL
-
initial map state: "hide", "show", or "colorbox"
- $obj : object = NULL
-
optional image/album object. Pass string for generic map and use callback to set points
- $callback : function = NULL
-
optional callback function to set map options.