Support » Plugins » [Plugin: Pronamic Google Maps] – Mashup help?

  • Resolved komodosp


    I am having trouble with the Pronamic google maps mashup… I have two pages, each with a location defined – one in Limerick, Ireland and the other in Cork.

    If I use the [google-maps] shortcode on the page with the Limerick location defined, it works perfectly.

    However if I use the following code (by which I hope to incorporate both locations on to one map) in my template file, only the Cork location appears – on any page – and furthermore, it is zoomed in to the very closest level, even though it’s zoomed out quite a bit on the page in the CMS back end.

    if(function_exists('pronamic_google_maps_mashup')) {
                'post_type' => 'page'
            ) ,
                'width' => 514 ,
                'height' => 700 ,
                'map_type_id' => 'roadmap' ,
                'marker_options' => array(
                    'icon' => ''

    How can I get both locations on the map and ensure the zoom is working correctly?

    Thanks for any help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • OK this is resolved. There was something wrong with the page with the Limerick location – I don’t know enough about wordpress I suppose to know what – but it was a result of the fact that I created the page before moving the site to another hosting / domain. (e.g. the post->guid still reflected the old URL)

    I just deleted and recreated it and now they both appear. I still don’t know how to choose the default zoom level but it’s zoomed out so both locations are visible which is fine for the moment.

    As an aside, it was showing the post title in the “speech bubble” when you click on the marker instead of the description I had entered. I rectified this with…

    function add_info_to_pronamic_google_maps ($item) {
    	global $post;
    	return get_post_meta($post->ID, Pronamic_Google_Maps_Post::META_KEY_DESCRIPTION, true);
    add_filter (Pronamic_Google_Maps_Filters::FILTER_MASHUP_ITEM, 'add_info_to_pronamic_google_maps');

    Just to add to this incase it helps anyone…

    I came across the same problem where only the more recent posts where showing up on the map.

    After playing around for a short time I discovered that changing the publish date of the post to something more recent made the post appear on the mashup map. Save me sometime as I was about ready to re-create 30 odd posts!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Pronamic Google Maps] – Mashup help?’ is closed to new replies.