Forums

Pronamic Google Maps
[resolved] Zoom on mashups (4 posts)

  1. erlinghamso
    Member
    Posted 5 months ago #

    First of all thank you for an excellent plugin!

    I just updated the plugin and WordPress to the newest versions (2.1.5 and 3.3), and the zoom on the mashups doesn't seem to work.

    Now they're at max zoom out (I think). Is this a bug, or is there some new syntax?

    Thanks in advance for any help!

    See: http://longboard.no/longboardspots-i-norge/ for an example.

    http://wordpress.org/extend/plugins/pronamic-google-maps/

  2. Pronamic
    Member
    Posted 5 months ago #

    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
    ));
  3. erlinghamso
    Member
    Posted 5 months ago #

    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?

  4. Remco Tolsma
    Member
    Posted 4 months ago #

    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.

Reply

You must log in to post.

About this Plugin

About this Topic