user1349642
user1349642

Reputation: 23

How to pan to some point or marker using jQuery Google Map UI v3?

I check all the method in the jQuery Google Map v3 api, there is no pan. I found example of v2, there is a map.panTo method, but not working in v3.

Upvotes: 2

Views: 3000

Answers (2)

Erik Philips
Erik Philips

Reputation: 54628

The map.panTo(latLng:LatLng) function seems to work for me:

JsFiddle Example

Upvotes: 2

Flater
Flater

Reputation: 13783

https://developers.google.com/maps/documentation/javascript/reference#Map

V3 still has map.panTo(my_latlon);. Also a .panBy( but that's besides the point. I currently have an application that uses V3 and also uses these methods, so I know it works.

Upvotes: 3

Related Questions