Geolocation plugin
The Contribution plugin provides a way to add geolocation data to individual items, and browse through geocoded items through a Google Map.
Contents |
Installing the Geolocation plugin
- Upload and activate the Geolocation plugin (see Installing_a_Plugin).
Configuring the Geolocation plugin
After activating the plugin, click the "Configure" link. Once in the configuration panel, enter values for default latitude, longitude, zoom level for the map (scale 1-10), and your Google Maps API Key. To get a key, visit the Google Maps API.
Using the Geolocation plugin
Map Browse page
The plugin automatically create a map/browse page at http://example.com/map/browse, where example.com is the path to your Omeka installation. You can make a link to this page using the uri(); function, like so:
Map on Item Show page
You can put a map anywhere on the item/show page by using the following code:
<?php echo map_for_item($item); ?>
