Where is the difference between the panTo
and setCenter
functions in the Google Maps API V3? Both seem to change the center of the map to the given point.
According to the reference:
panTo:
Changes the center of the map to the given LatLng. If the change is less than both the width and height of the map, the transition will be smoothly animated.
setCenter simply changes the center of the map.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With