Google Maps Shell

plugin banner

This plugin is meant to be used in conjunction with external code that provides necessary coordinates to the plugin using the ab_google_maps_markers f

Author:Aaron Brazell (profile at wordpress.org)
WordPress version required:3.4
WordPress version tested:3.5
Plugin version:1.0
Added to WordPress repository:12-12-2012
Last updated:12-12-2012
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:
Total downloads:1 060
plugin download
Click to start download

This plugin is for developers and is meant to be used to enable Google Maps integration. While it does come with a default location, developers will want to feed the plugin a nested array of location data. This data can be manually curated or retrieved through external means.

You need to use the filter ab_google_maps_markers and return the new nested array.

Example:

function new_array( $markers ) {
    $markers = (object) array( 
        array( 
            'lat' => '30.266132', 
            'lon' => '-97.745825',
            'title' => 'Gingerman Austin',
            'address' => '301 Lavaca St, Austin TX 78701'
        ),
        array(
            'lat' => '30.2658',
            'lon' => '-97.735691',
            'title' => 'Easy Tiger Bake Shop and Beer Garden',
            'address' => '709 East 6th St, Austin TX 78701'
        ),
    );
    return $markers;
}
add_filter( 'ab_google_maps_markers', 'new_array' );

ChangeLog