【发布时间】:2014-03-01 07:10:50
【问题描述】:
我正在使用 jQuery 选项卡实现 Google 地图,但没有得到正确的显示。
我已尝试使用此代码在单击选项卡 ID 时重新居中地图。
<script type="text/javascript">
jQuery.noConflict();
jQuery(document).ready(function() {
jQuery("#tab6").click(function() {
google.maps.event.trigger('location-canvas', 'resize');
map.setCenter(bounds.getCenter());
map.setZoom(16);
});
});
</script>
但是没有用。
我正在使用这个标签脚本:Simple jQuery Responsive Tabs Interface Plugin - jQueryTab
我的 JSFiddle 是:Code
如果您能指导我并帮助我解决此问题,我将不胜感激。
谢谢。
【问题讨论】:
标签: jquery google-maps google-maps-api-3 jquery-tabs