Google Maps Api v3 - set map position in runtime
How can I change position of the map, from where it is pointing now, to ie. 45.00,19.00, but in a runtime, now when map is initialized?
my application have to "jump" from some coordinates to other, so that's why I need this ability.
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
you need the extended MVCObject() .... there you find getPosition() (return: LatLng) and setPosition(latlng:LatLng) you just need to set this property and map location will change