Google Maps Api v3 - set map position in runtime
Create that Map object, save it to a variable (i.e. map
) and then use map.panTo()
.
See the reference of Map
ok, here it is:
MyMap.map.setCenter(new google.maps.LatLng( 45, 19 ) );
Create that Map object, save it to a variable (i.e. map
) and then use map.panTo()
.
See the reference of Map
ok, here it is:
MyMap.map.setCenter(new google.maps.LatLng( 45, 19 ) );