Java 如何使用Maps GWT API显示多个信息窗口?
我写了以下方法:Java 如何使用Maps GWT API显示多个信息窗口?,java,gwt,google-maps-api-2,Java,Gwt,Google Maps Api 2,我写了以下方法: public static void setMarkOnMap(final MapWidget map, String place, final String content) { Geocoder geocoder = new Geocoder(); geocoder.getLatLng(place, new LatLngCallback() { @Override public void onSuccess(
public static void setMarkOnMap(final MapWidget map, String place,
final String content) {
Geocoder geocoder = new Geocoder();
geocoder.getLatLng(place, new LatLngCallback() {
@Override
public void onSuccess(LatLng point) {
Marker marker = new Marker(point);
map.addOverlay(marker);
map.getInfoWindow().open(marker, new InfoWindowContent(content));
}
@Override
public void onFailure() {}
});
}
我打了两次电话,但地图上只显示了一个信息窗口
是否有任何方法可以使用Google Maps API for GWT显示多个信息窗口(来自标记)