[Plugin: MapPress Easy Google Maps] Mappress API
-
Hi Chris and thanks for this excellent plugin of yours
it works very very well when I’m using the shortcodes, anyhow I’d would like to use the API for some posts, unfortunately can’t get it to display maps
here is the code I’ve set
$mymap = new Mappress_Map( array( 'width' => 600, 'height' => 450 ) );
// si get_post_meta avec type = true, on recupere une chaine, sinon un array
$address = get_post_meta($post->ID, 'adresse',false)
$mypoi = new Mappress_Poi( array( 'address' => $address[0], 'title' => get_the_title($post->ID), 'body' => $address[0] ) );
$mymap->pois = array($mypoi);
$mymap->display();
and there is the firebug console error
a is null
[Break on this error] za(Xd[A],function(){if(this.b){switch(...[A].Wa=function(a,b){this.d.Wa(a,b)};
main.js line 26
Seems like google API is waiting for some unset data ?
I’ve tried to set a few more parameters as well and still get the same error
Any hint ?
- The topic ‘[Plugin: MapPress Easy Google Maps] Mappress API’ is closed to new replies.