开发者

GoogleMaps V3 CheckResize() function

I have a google map that takes the users post code and loads in directions. The map then shrinks by around 300px in width. Although the map and options adjust to this new width, the route however remains as if the map did not shrink with not all of it in view.

I believe the way to checkResize() 开发者_C百科but I do not know how to use this. Essentially I would need to trigger it on an onClick event. How is this done. Maps API v3

Any ideas?

Marvellous


 google.maps.event.trigger(map, 'resize');
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜