WP-Geo KML Overlay
-
We are using WP-Geo on https://accesslocal.tv and would like to overlay a outline of a particular neighborhood zone. We have created a KML file and have tried using the overlay example from the documentation but we are not sure that the code is correct or being inserted into the right PHP files. We have tried adding the following to maps.php, wp-geo.php, and functions.php:
function my_wpgeo_map_js_preoverlays( $content, $gmap ) {
$js = ‘ geoXml = new GGeoXml(“https://accesslocal.tv/wp-content/uploads/wp-geo/kml/bhc_zone.kml”; ‘ . $gmap . ‘.addOverlay(geoXml); ‘;
return $content . $js; }add_filter( ‘wpgeo_map_js_preoverlays’, ‘my_wpgeo_map_js_preoverlays’ );
Is this even close? Also, what PHP file should we modify? Also, do we need to add any code to the site header?
Thanks for your help, your plugins add a lot to our community driven site!
- The topic ‘WP-Geo KML Overlay’ is closed to new replies.