• Resolved biberkopf666

    (@biberkopf666)


    is there anyone who got the custom-center functionality working?

    if you just set latitude and longitude nothing changes. maybe it is supposed to be like this because the default value of fit_bounds is true and so it just shows all the markers.

    but even if you set fit_bounds to false it doesnt work. it always centering on my current IRL location.

    any ideas?

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Remco Tolsma

    (@remcotolsma)

    This is indeed not what you would expect as user, in the next version this bug will be fixed.

    I think this has worked, but it is weird, because it centered for me previously, but not for others.

    jQuery(document).ready(function($) {
    	// Mashup
    	jQuery(".pgmm").bind("pronamic-google-maps-ready", function(event, map){
    		map.setCenter(new google.maps.LatLng(34.452218, -83.320312));
    	});
    });

    Add that to your javascript to force it to center on the lat/lon. Add it after the code that adds your map. Hopefully that works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Pronamic Google Maps] mashup map: default center’ is closed to new replies.