Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/gwt/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Gwt V3中getInfowindow的替代选项_Gwt_Google Maps Api 3 - Fatal编程技术网

Gwt V3中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(),

我在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(),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)