We have World map viewed as default map when Google Maps loaded in the website, now we want to make marker centered on the map. Put the following JavaScript code snippet below Google Maps mashup code
jQuery(document).ready(function($) { // Mashup jQuery(".pgmm").bind("pronamic-google-maps-ready", function(event, map){ map.setCenter(new google.maps.LatLng(latitude, longitude)); }); });
Change latitude and logitude to your location
Leave a Reply