Google Maps v3和JQuery选项卡(JQuery选项卡Google Maps bug)

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Google Maps v3和JQuery选项卡(JQuery选项卡Google Maps bug)相关的知识,希望对你有一定的参考价值。

If you are struggling against some problems with google maps and tabs be aware that, in order to avoid problems, jQuery sets the width & height of every hidden element to Zero.

To fix this problem all you have to do is trigger the resize event and the map will be working as it should.
To trigger the event all you need to do is
  1. google.maps.event.trigger(map, 'resize');

以上是关于Google Maps v3和JQuery选项卡(JQuery选项卡Google Maps bug)的主要内容,如果未能解决你的问题,请参考以下文章

使用 jquery 调整 Google Maps api v3 DIV 的大小 - 磁贴未正确刷新

Google maps v3 在 jQuery mobile 和 PhoneGap 上具有自动完成功能

使用 jQuery mobile、google maps API v3 将 infoWindow 添加到地图标记

jQuery Mobile 干扰 Google Maps v3 API

远程在 Firefox 中使用 Google Maps V3 时出现“未定义 google”

地图加载后 Google Maps API v3 不会禁用滚轮