What does this plugin do?
This plugin allows you to geotag any of your links and then provides the ability to add a map of your geotagged links to your theme.
How do I install and configure the plugin?
- Download the plugin from wordpress.org.
- Unzip the plugin into the /wp-content/plugins directory on your webserver.
- Activate the plugin.
- Navigate to the settings page for the Geo Blogroll plugin. As of WordPress 2.7 this page should be located at http://yourblog.com/wp-admin/options-general.php?page=geo-blogroll/geo_blogroll.php)
- Add your Google API key. (You can get one here.)
- Add a width for your map. This can be in pixels or a percentage.
- Add a height to your map. This can be in pixels or a percentage.
- Add a center point to the map. This can be any address that Google geocoder can decode.
- Add a map zoom level. This can be a number from 1 to 10.
- Add a level of noise that you want to add to each of the mapped points. (You should almost always leave this at 0.) The reason this option is here is because when you have a number of blogs that geocode to the same location, the markers that represent these blogs lay directly on top of each other on the map, rendering some of the markers unclickable. Adding some random noise to the location of the markers fixes this overlap problem. This is the least elegant of all solutions but was the quickest to implement. In the future I hope to implement something a bit better than this.
How do I geotag the blogs from my blog roll?
You should see a “Link Geography” section that looks like this whenever you try and edit a link:
Any link that has a city, state, and country defined will show up on your map.
How do I create a google map of the geotagged blogs?
To show the map within your theme simply add this code to your theme:
<?php if (function_exists(geo_blogroll_show_map)) {geo_blogroll_show_map(); }; ?>
Leave a Reply