Add a map display of a members location to their BuddyPress profile.
A simple user location map plugin for BuddyPress sites combined with a separate function and shortcode to enable standalone maps in posts/pages and embedded in template files.
Add Google maps to display a members Location. Maps are displayed in the users profile / account page as well as member directory listing or group members listing if enabled.
A widget is available to allow finer control of map placement in custom widget areas that may exist. At present the widget works only for members profile areas and does not have the range of options available to the other maps.
A nod to Andy Peatling for the inspiration of the original map php code.
This version replaces the Google API with the V3 which benefits from not requiring an API key.
The admin settings page allows maps to be assigned dimensions as well as basic options for map overlay controls and to define which area of a page maps should display in by selecting page action hooks.
Maps can be set to display on both the BP members loop and the groups loop directories as well as the user account screens.
A standalone function and shortcode are provided to allow embedding single maps in templates or for calling from a post or page via shortcode.
Important: You must have set up an extended profile field for members to use to add their location. The location can be either set in the 'Base' profile group in which case it will appear on the signup page or you can create a new group and have the field display on the members profile settings only. The maps will only display once the member has added their location to this new field.