google maps - Issue with panTo() and how to change coordinates -


i've got little issue while placing panto() google maps v3. here description of problem:

in case, goes well, map moves , animates until stops @ right point.

 var infowindow = new google.maps.infowindow({ content: strhtml });   google.maps.event.addlistener(marker, 'click', function()   {   var latitude = marker.position.lat();  var longitude = marker.position.lng();    var panningpoint = new google.maps.latlng(latitude, longitude);    activeinfowindow.close();   map.panto(marker.getposition());   infowindow.open(map, marker);  activeinfowindow = infowindow;    }); 

in other case, wrote down map go panning point decided, instead of animating map, refreshes (not animate) , similar function "setcenter".

 var infowindow = new google.maps.infowindow({ content: strhtml });   google.maps.event.addlistener(marker, 'click', function()   {   var latitude = marker.position.lat();  var longitude = marker.position.lng();    var panningpoint = new google.maps.latlng(latitude, longitude);    activeinfowindow.close();   map.panto(panningpoint);   infowindow.open(map, marker);  activeinfowindow = infowindow;    });   

image

why? there differences getposition() , collecting lat , long , redrawing point?

my real problem must pan not right on point "x % " bottom top div overlay problem.

any suggestions?


Comments

Popular posts from this blog

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -