This is a quick start to a page about the GoogleMap Theme (created by LarryDoliver).
If you found your way here, you might also be interested in The GoogleMap Module. There is also a GPS module (see: Gallery2:Modules:Gps) that allows for export to Google Earth.
Installation
- Download the GoogleMap Theme:
- unzip it and put the resulting map/ folder in your themes/ folder
- log in to your gallery install as the admin
- go to the administration page
- go to the Themes section
- click on the All Themes tab - Map should show up as one of the themes
- install the Map theme
- activate the Map theme
Note: You need to install and activate the Custom Fields module for the theme to work you can download it here Custom Fields
Basic Configuration
Via the web:
- log in to Gallery
- In the Themes section of the administration page you should now have a Map tab. Click on it
- paste your Google Map API key (which you can get from here) into the appropriate field (6 up from the bottom)
- save it
Using The Map Theme
Set up a single album::
- set up the theme for an album
- log in to Gallery
- Navigate to the album to which you want the Map theme applied
- Click the Edit Album link
- Click the Custom Fields tab
- Add a Photo field called GPS (NOTE: for version 1.0.7 you should add two custom fields... GPSLAT and GPSLON ...the GPS field is not necessary)
- Save
- enter the GPS info for the images in the album, Edit each image
- for each one, click on the Custom Field tab
- enter the appropriate lat and long values (NOTE: the Map module provides a handy way to get that info (see the module page for details), so you might want it installed even if you aren't planning on using it)
- Click the Album tab
- Set the theme to Map
- Save
- Click the Theme tab
- You're now on a page very similar to the one you encountered in Basic Configuration except that the configuration here applies only to this album. This is probably the point at which you want to set the initial center (lat and long (format: lat,long)), zoom level (0..17, lower is more zoomed in (NOTE: for version 1.0.7 higher is more zoomed in)), and map type of the theme. Other configuration of what's displayed and where also occurs on this page.
- Save
Set up an album with sub-albums(s):
- -Create an album.
- -Edit customfields
- -Add a common field named GPSLAT and one named GPSLON
- -Add items (photos) to this album
- -Edit their GPSLAT and GPSLON customfields and add coordinates
- -Add a sub-album
- -Edit it's GPSLAT and GPSLON customfields and add coordinates
- -Add items (photos) to the sub-album
- -Edit their GPSLAT and GPSLON customfields and add coordinates
- -Set the sub-album theme to the map theme
- -Set the theme of the sub-albums's parent to the map theme
- -Access the parent album
- -The map will show green markers representing the items (photos) in the parent album
- -The sub-album on this map will have a red marker representing the sub-album
- -Click the red marker and a new map will be displayed showing green markers representing the items (photos) in the sub-album
- NOTE: Both album and item marker colors are selectable in version 1.0.7