开发者

Google Maps V3 panTo offset

开发者 https://www.devze.com 2023-04-10 21:13 出处:网络
I am having the same issue as this folk ( link ), trying to offset panTo coordinates. The only solution I\'ve found so far is to use panBy after I\'ve used panTo.

I am having the same issue as this folk ( link ), trying to offset panTo coordinates. The only solution I've found so far is to use panBy after I've used panTo.

map.panTo( position );
map.panBy(120, -70);

Those familiar with the Google Maps API will know that the issue with this approach is that it will trigger a smooth animation after panTo, to move t开发者_Python百科o panBy. I wonder if there is a better approach?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号