Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Pronamic

    (@pronamic)

    Can you post the code you use to render the Google Maps mashup? From wich version did you upgrade tot 2.1.5?

    There is an option that will fit the map automatically all the markers on the map. You can disable it like this:

    pronamic_google_maps_mashup(array(
    	'post_type' => 'book' ,
    	'posts_per_page' => -1
    ), array(
    	'width' => 800 ,
    	'height' => 800 ,
    	'zoom' => 4 ,
    	'fit_bounds' => false
    ));
    Thread Starter erlinghamso

    (@erlinghamso)

    Thanks for the reply!

    Sorry for not including the code. It is:

    if(function_exists('pronamic_google_maps_mashup')) {
    						    pronamic_google_maps_mashup(
    						        array(
    						            'post_type' => 'longboard_spot',
    						            'posts_per_page' => '-1',
    						        ) ,
    						        array(
    								'width' => 960 ,
    								'height' => 600 ,
    								'zoom' => 5
    						        )
    						    );
    						}

    It doesn’t seem to either fill the map or zoom.

    I’m not sure which version I upgraded from. It was quite old, perhaps 1.7-something.

    Any ideas?

    Plugin Author Remco Tolsma

    (@remcotolsma)

    In version 2.1.6 it isn’t possible to set an fixed zoom level for Google Maps mashup, this will be fixed in the next release.

    Hi, has this been fixed yet? I’m using 2.2.3 and I still can’t seem to set a predefined zoom value:

    if(function_exists('pronamic_google_maps_mashup')) {
        pronamic_google_maps_mashup(
            array(
                'post_type' => 'restaurant',
                'nopaging' => true,
                'posts_per_page' => -1,
                'meta_key' => self::FRANCHISE_META_KEY,
                'meta_value' => 'dropdown_num_2',
            ) ,
            array(
                'width' => $width ,
                'height' => $height ,
                'marker_options' => array(
                    'icon' => asset_url("images/map-marker.png"),
                ),
                'zoom' => $zoom,
                // 'fit_bounds' => false
    
            )
        );
    }

    Whenever I change the value of $zoom, it doesn’t change anything on the map

    Plugin Author Remco Tolsma

    (@remcotolsma)

    In the development version it’s working for me:

    pronamic_google_maps_mashup(array(
    	'post_type' => 'any' ,
    	'posts_per_page' => -1
    ), array(
    	'width' => 800 ,
    	'height' => 800 ,
    	'map_type_id' => 'satellite' ,
    	'latitude' => 52 ,
    	'longitude' => 5 ,
    	'zoom' => 8 ,
    	'fit_bounds' => false
    ));

    The ‘fit_bounds’ argument has to be false. You can download the development version from the following page:

    https://github.com/pronamic/wp-pronamic-google-maps/ ? https://github.com/pronamic/wp-pronamic-google-maps/zipball/master

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Pronamic Google Maps] Zoom on mashups’ is closed to new replies.