4

GWT TextBoxウィジェットがあり、GoogleマップのAPIオートコンプリートを追加します。そこに提案が表示されますが、マウスクリックでは何も選択できません。アイテムにカーソルを合わせると、線の色が変わっているのがわかります。何をチェックするか、どこを見ればよいか、何かアイデアはありますか?

私のGWTコード:

public void setAutocomplete() {
    Element element = text.getElement();
    MapWidget mapWidget = AbstractController.getInstance().getMapWidget();
    LatLng sw = LatLng.newInstance(47.1060978, 11.00138);
    LatLng ne = LatLng.newInstance(47.5904034, 11.9958484);
    LatLngBounds c = LatLngBounds.newInstance(sw, ne);
    initAutocomplete(element, c, mapWidget);
}

public static native void initAutocomplete(Element element, LatLngBounds mybounds, MapWidget mapWidget) /*-{
    var options = {
        types : [ 'geocode' ],
        componentRestrictions : {
            country : 'at'
        },
        bounds : mybounds
    };

    autocomplete = new $wnd.google.maps.places.Autocomplete(element,options);
    autocomplete.setBounds(mybounds);
}-*/;
4

0 に答える 0