Monday, June 3, 2024
 Popular · Latest · Hot · Upcoming
196
rated 0 times [  198] [ 2]  / answers: 1 / hits: 31545  / 11 Years ago, fri, november 1, 2013, 12:00:00

I am using google map api in javascript, i need to change zoom and center by the value coming from restful service and i can do that with setCenter and setZoom functions.



But the problem is that, map is reloading and my boss want it to focus that location with an animation not by reloading map is there anyway for doing so?


More From » google-maps

 Answers
11

The method setCenter reloads the map. For disabling map reloading and enabling the animation, use the panTo method: Map.panTo Developers Documentation


[#74563] Thursday, October 31, 2013, 11 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ronans

Total Points: 460
Total Questions: 109
Total Answers: 108

Location: Slovenia
Member since Sat, Sep 11, 2021
3 Years ago
;