Gwt V3中getInfowindow的替代选项
我在gwt-maps-3.8.0中找不到getInfoWindow。请帮忙…这是你要找的吗Gwt V3中getInfowindow的替代选项,gwt,google-maps-api-3,Gwt,Google Maps Api 3,我在gwt-maps-3.8.0中找不到getInfoWindow。请帮忙…这是你要找的吗 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(),
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"));`
这将打开给定地图上的信息窗口。最终我得到了。。在Maps V2中,InfoWindow没有初始化。相反,我们从map中获取的是
infowindowinfo=map.getInfoWindow()代码>
在MapV3中,我们的语法如下
InfoWindowOptions=InfoWindowOptions.create();
选项。设置内容(“测试”);
选项设置位置(LatLng.create(24.796708,46.691895));
InfoWindow info=InfoWindow.create(选项);
信息。打开(地图);
有关详细信息,请单击
InfoWindow.open(MapWidget mapWidget)