• Resolved blueeclipse

    (@blueeclipse)


    Hi,

    I am having problems getting the mashup map to appear on my site. I am trying to list businesses from the selected category/term, on a map. The map is working on the individual business page, just having issues with the mashup.

    Here is the code I am using:

    if ( function_exists( 'pronamic_google_maps_mashup' ) ) {
    	pronamic_google_maps_mashup(
    		array(
    			'post_type'      => 'business',
    			'tax_query' => array(
    				array(
    					'taxonomy' => 'business-type',
    					'field' => 'id',
    					'terms' => $termid
    				)
    			) ,
    		),
    		array(
    			'width'          => 600,
    			'height'         => 800,
    			'nopaging' => true
    		)
    	);
    }

    WHen I inspect the source code the canvas of the map is empty, but the hidden element “pgmm-info” displays the 3 items I am trying to display.

    Any help is greatly appreciated.

    https://www.ads-software.com/plugins/pronamic-google-maps/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter blueeclipse

    (@blueeclipse)

    Figured it out, had an error with another query lower down on the page “Cannot use object of type WP_Query as array”. Fixing this also fixed the map

    Plugin Author Reüel

    (@pronamic_reuel)

    Glad you were able to fix it and everything works as expected now.

    Enjoy using Pronamic Google Maps!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mashup Map is Blank’ is closed to new replies.