WordPress Mapping Plugin

The WordPress Google Mapping Plugin allows your site to show locations using Google mapping, showcase featured images from your geo-located posts, present GPX tracks, GPX elevation graphs, record a country against your posts, and much much more…

I like to think this mapping plugin is amongst the very best available for WordPress. But don’t take my word for it, here’s what customers say, “… the price of your script is too cheap …” and “… this plugin is very complete and original.” Plus I’m always on the lookout for new innovative features (and bugs to squash) – so get in contact if you have any you’d like to see.

Example

Here’s a working example of what the plugin can achieve for your site:

switch Current Location

(or click a marker to set)

Navigation steps will show here...

For reference the shortcode used to generate this map is:
[post_map type="ROADMAP" zoom="9" current="on" link="off" style="width: 100%; height: 400px; border: 1px solid lightGray;" all="on" weather="on" temperature="C" traffic="on" directions="on" distance="M" panel="on" photos="no" fullscreen="off"]

Example GPX Trace Map

For reference the markup used to generate this map is:
<a href='/blog/wp-content/uploads/2013/09/Staveley-Geo.gpx'>Staveley Geo</a>

Buy the Plugin

Buy the enhanced Post Country Plugin here!

Post Country Plugin

[SKU23496] £19.50 (Shipping £0.00)

Approximately one hour after payment your plugin will be emailed as a compressed ZIP to you PayPal payment address.

Features

The list of features is extensive:

marker Using the Location section (you may alter the title of this section) of the WordPress post editing page to create and manage your location data. You may:

  • Select the Country you want to tag the post with from the country drop-down. For example, to get a UK flag UK select UK from the drop down.
  • Tag posts with one or more sets of latitude & longitude for mapping. Each of these locations may optionally have a label, e.g. “A Wonderful Hotel”. If no label is given the post title will be used. Locations can also be given a specific marker using the marker drop-down.
  • To simplify the editing page it is also possible to hide and show the map.
  • Search for locations using geo-location by address, place name, etc.
  • Place markers on the map simply by clicking a location. A new yellow marker is shown: marker. This marker may be dragged to a new location.
  • You may also elect to stop a particular post’s locations being mapped by checking the do not display location on map box. Note that blog administrators can also elect to block the display of specific posts.

There are more details for editing your locations available here:

marker Free upgrades for life!. As the plugin gains more features you can be sure you will always have access to those features without any additional cost.
slideshow Automatically play a random slideshow of featured images from your geo-located posts and venues. The map pans dynamically to show the location marker of the post for each image.
marker Record the latitude & longitude of one or more locations against your posts.
Using the add and remove buttons allow additional locations to be added or removed. (Remember to click the arrow icon to set the focus of geo-location.)
marker The plugin has several advantages over other WordPress mapping plugins. For example, it doesn’t unduly load your web server, making full use of the power of the user’s browser. This also makes content more interactive, for example hovering over elevation graphs shows the data at that point of the graph dynamically.
marker Weather and Clouds layers may be shown on maps. The temperature scale, °C or °F, may also be set.
marker Get directions between two locations on a map. The directions features allow you to travel from any point marker to point marker. Just type the location names, e.g. “London” to “Cambridge”. You can also use your “Current Location” (note some browsers won’t support this) as a start point and travel to any of the markers on your map by clicking any marker to set the end point. Tick the show navigation step markers checkbox and a series of markers will be added to the route to provide step by step navigation instructions. You may also opt to show the navigation steps below the map with the panel shortcode parameter.
marker Google’s Traffic layer may be displayed to provide extra information to help plan your routes.
marker Posts with location data are highlighted with an indication of the quality of the location data: geo-data-ok – the Latitude & Longitude are OK; geo-data-incomplete – only one Latitude or Longitude value is provided; geo-data-stopped – the Latitude & Longitude are OK, but the administrator has blocked plotting.
marker Automatic clustering of map markers at lower zoom levels to de-clutter the map. Clusters are shown with colour coded icons: cluster cluster cluster cluster cluster. The hotter the colour the more markers are clustered.
marker Provide a table of locations associated with a post using the shortcode [locations_table]. There is one optional parameter title. This is the title to display before the table of locations (default is Venues or your customised name).
marker The plugin remembers the last map-type (ROADMAP, SATELLITE, HYBRID, or TERRAIN) shown.
marker The size, position, etc. of each map on your pages is customisable using CSS settings (defaults are initially provided).
For example, within the [post_map] shortcode you may want to force a certain style such as have the map shown with a green border (style=“border: 2px solid green;”). Whereas your theme may normally be asserting a grey, black, or another border colour.
Note, the options page provides fields to enter CSS for each type of map (VENUE, POST, GPX, and ELEVATION). If your WordPress theme does not immediately show the maps it is essential that this CSS sets, as a minimum, the size of the canvas. Try something like: width: 100%; height: 300px; border: 1px solid #ddd; margin: 5px; to kick-off.
marker Within the WordPress post editing form you may search using geo-location by address, place name, etc.
marker Hovering over any marker on the map quickly shows a popup of that marker’s name. While clicking the marker will show a summary popup for the marker including: post title, excerpt, and country. Featured image thumbnails can also be optionally included in the popup summary.
marker A limitation of Google mapping is that each map-type has a maximum level of zoom. For example, the most limited level of zoom is often found with the TERRAIN style of map. Switching to SATELLITE may allow a higher level of zooming, especially in popular urban areas like cities. However, regardless of map-type, sooner or later it will be impossible to zoom the mapping any further. At this point if you have multiple locations mapped the clustering of the markers will be impossible to resolve. The plugin deals with this problem by offering a tabbed summary popup, one tab for each location. Just click on the cluster to see the tabs.
marker Make use of a number of template tags to optionally integrate mapping in to your site. These are:

  • To including linked country icons: country_tag($post_ID, $short=true, $prefix='Location ', $size=15, $echo=true);
  • To include a popup list of countries: country_list_countries();
  • Location map links: get_map_link($anchor_text, $post_ID='');
  • Venues button: the_map_sidebar_link($before_HTML, $after_HTML);
  • Show a link to all venues: get_venues_link();
    Use this template function or have the plugin automatically include a link on any page of post with <!-- venues-link -->.
marker Upload GPX files, say from your GPS device, to automatically show the tracks. This simple yet powerful mechanism allows uploaded GPX files to automatically show the trace of a route.
GPX files may be uploaded using the normal WordPress media upload and then embedded within a post. For example, using this markup, <a href='http://your-domain/path/file.gpx'>GPX Data</a>, will automatically present a Google map showing the route described by the GPX file.
The GPX trace will show any named waypoints with a small green marker – waypoint. If the post that the GPX is shown in has location data the location will be shown with a purple marker – post-marker.
Accompanying maps of GPX tracks, graphing of the elevation along the path of the track may be displayed. Graphs are built dynamically by the user’s browser (so unlike some other plugins they do not cause lots of PHP processing on your server or blow PHP’s memory limits). You may suppress the elevation graph for a specific track by including elevation='off' in the markup. For example, <a href='http://your-domain/path/file.gpx' elevation='off'>GPX Data</a>
marker If your browser supports it, and you have allowed your browser to share your current location, the plugin can show where you are currently located. The marker for this is: marker This may be useful when writing posts, or just on one of your pages to show your users where they are.
Of course it’s also super useful to get directions from where you are now to one of your marked locations using the navigation directions feature described above!
marker Within the WordPress “visual” and “text” editors a shortcode for [post_map] can be quickly inserted using a quicktag button. In the “text” editor the button is button and in the “visual” editor the button is .
There are several more additional parameters that can be added to the shortcode:

  • type="ROADMAP|SATELLITE|HYBRID|TERRAIN" the type of map shown.
  • zoom="11" the map zoom level (for non-current location maps).
  • location="latitude,longitude" e.g. 54.457,-3.026. If omitted, the post location is used if set.
  • loc_name="name" a location label, e.g. North Pole.
  • current="on|off" show, and center on, your current location.
  • link="on|off" show Venues link, defaults to the Include link to Venues map option.
  • style="CSS" CSS styling, defaults to the main post_map CSS value.
  • all="on|off" show all post and venue locations.
  • photos="on|off" show geo-tagged photos attached to this post.
  • weather="on|off" map control to show weather (and cloud cover) information.
  • temperature="C|F" use °C or °F, defaults to Weather layer setting.
  • traffic="on|off" map control to show traffic information.
  • directions="on|off" enable the navigations between points “A” and “B” feature.
  • distance="M|I" use metric or imperial units in directions.
  • panel="on|off" with directions enabled, show a panel of navigational steps.
marker Support for mapping of JPG photographs with geo-tagged EXIF data. The EXIF location data may have been added to the photo’s meta-data automatically when the picture was taken by a GPS enabled camera, manually, or by photo management software like Adobe’s Lightroom or Apple’s iPhoto.
Thumbnails of the photos are shown in a popup when hovering over photo markers.
However, please note that a default WordPress installation does not preserve EXIF data when uploading and scaling images. Therefore the plugin will not have access to location meta-data in photos uploaded before the plugin was installed and the Save image location data option was set. Photos that have had their geo-tagged location data successfully read will show a tick (geo-data-ok) in the Geo Tag column of the WordPress media library list.
Venues
For reference the shortcode used to generate this map is:
[post_map type="SATELLITE" style="width: 100%; height: 250px; border: 1px solid lightGray;" all="off" photos="on" traffic="off" weather="off" directions="off" link="on" search="on"]
marker Associate post categories with your custom markers so that all posts in a certain category are shown on the map with that marker. (Note, if a post is tagged with more than one category the first is selected.)
marker A sidebar widget providing navigation to posts from a given country. The widget has a single option, one of your WordPress pages. When set to one of your pages a link is shown under the popup list of countries that links to that page. Typically on that page you will use the [venues_map] shortcode to display a map showing all of your location data.
marker A special page available in the WordPress administration menu to review numbers of posts from each country.
marker The Venues Map Page options allows configuration of whether location data, for posts and/or venues, are included in the standards compliant Geo RSS feed generated by the plugin. (Note, add ?feed=venues to your blog’s main URL to access the location RSS feed. You may wish to use this to submit geo content to Google as a geo site map.)
marker Posts (and Venues) can be tagged as being associated with a country. The flags of 77 countries from Australia Australia to Wales Wales to the USA US are included. So, for example, you might tag: the country that the post writes about; where your last great holiday was; a business trip; or event took place in; the location you are writing the post from; etc. Your imagination is the limit!
Country icons can also be clicked to list all posts from that country.
Of course you may also add to (or delete form) the flags provided to customise your installation. The flags are in the wp-content/plugins/post-country/Flags/ directory.
marker For Venue posts flags can also be used as markers on the map.
So for example it’s easy to create a series of posts (Venues), marked on the map with flags, for all the countries you have visited.
marker A number of customised markers are included. Examples of these have been used as the bullets in this list!
Plus, the Adobe Photoshop template (PSD) used to create new custom markers is included.
marker And finally, I am always keen to extend the plugin’s capabilities, so why not ask for more features. You never know they might well get added, and as there’s a promise of updates for life what have you got to lose… 😀

 

Other Plugins

Many of the plugins, widgets, and other extensions used on this site have been designed and developed specifically. I’m quite (modestly) pleased with them. 😳 Why not use them on your WordPress powered site too? Many of these extensions are free. Please consider, especially if you are using one of the free plugins, a donation to aid on-going development if you find them useful. 😉

:star: Why not check out my other WordPress plugins too! :star:

Series - WordPress Plug-ins

  1. Image Link WordPress Plug-in
  2. Last Year WordPress Sidebar Widget Plugin
  3. Simple Archive Plugin
  4. Avatars Plugin
  5. WordPress Post Country Plugin
    (with premium Google Mapping)
  6. Notices Ticker Plugin
  7. Comments with Avatars
  8. Simple WordPress Twitter Plugin
  9. WordPress Post Grouping Plugin
  10. WordPress Mapping Plugin