3

在 Google Maps API v2 中:GInfoWindowTab (title,content) - 将弹出窗口中的信息拆分为多个部分。

例如:

tab1 = new GInfoWindowTab('Tab 1', 'Content of tab 1');
tab2 = new GInfoWindowTab('Tab 2', 'Content of tab 2');

等等。

在 Google Maps API v3 中,此功能不起作用。

并且最新对应的官方参考中没有这个功能: http ://code.google.com/intl/ru/apis/maps/documentation/javascript/reference.html#InfoWindow

有谁知道,如何替换该功能或模仿它?

4

1 回答 1

5

InfoBubble 实用程序库(位于 Maps API V3 之上的库)提供了此功能。

请参阅:http: //google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/examples/example.html

于 2011-08-14T05:45:09.620 回答