views:

25

answers:

3

hello,

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 initialsed?

my application have to "jump" from some coordinates to other, so that's why i need this ability.

tnx in adv!

A: 

Create that Map object, save it to a variable (i.e. map) and then use map.panTo(). See the reference of Map

Martin
A: 

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

Schnoesel15
A: 

ok, here it is:

MyMap.map.setCenter(new google.maps.LatLng( 45, 19 ) );