开发者

GoogleMaps V3 CheckResize() function

开发者 https://www.devze.com 2023-03-13 23:32 出处:网络
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 rema

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

精彩评论

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