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

最後に私が得た..マップ V2 では、InfoWindow の初期化はありません。代わりに、map as から取得します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 に答える
0

それはあなたが探しているものですか??

InfoWindow.open(MapWidget mapWidget)

指定されたマップでこの InfoWindow を開きます。

于 2013-02-11T11:15:26.620 に答える