>
Download This Plugin | |
Download Elegant Themes | |
Name | Google Maps Shell |
Version | 1.0 |
Author | Aaron Brazell |
Rating | 0 |
Last updated | 2012-12-12 07:10:00 |
Downloads |
310
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Google Maps Shell plugin added 14 bytes of resources to the Home page and 16 bytes of resources to the sample Post page.
Google Maps Shell plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Google Maps Shell plugin ads no tables to your Wordpress blog database.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' );