2
 Is there any alternate code for getting infowindow from maps v3. Previously i had v2 version code as 
`MapWidget map = new MapWidget();
InfoWindow info = map.getInfoWindow()
info.open(marker.getLatLng(),new InfoWindowContent("Test"));`

我在 gwt-maps-3.8.0 中找不到 getInfoWindow。请帮忙...

4

2 回答 2

0

是你要找的吗??

InfoWindow.open(MapWidget mapWidget)

在给定地图上打开此信息窗口。

于 2013-02-11T11:15:26.620 回答
0

最后我得到了.. 在 Maps V2 中,InfoWindow 没有初始化。相反,我们从地图中获取,因为InfoWindow info = map.getInfoWindow(); 在 Map V3 中,我们的语法为 InfoWindowOptions options = InfoWindowOptions.create(); options.setContent("Test); options.setPosition(LatLng.create(24.796708, 46.691895)); InfoWindow info = InfoWindow.create(options); info.open(map);

详情请点击这里

于 2013-02-12T04:28:13.220 回答