开发者

Google Maps V3 panTo offset

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜