Package org.geomajas.plugin.geocoder.client

Examples of org.geomajas.plugin.geocoder.client.GeocoderWidget


    Toolbar toolbar = new Toolbar(map);
    // @extract-skip-start
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);
    // @extract-skip-end

    toolbar.addMember(new GeocoderWidget(map, "description", "Geocoder"));

    VLayout mapLayout = new VLayout();
    mapLayout.addMember(toolbar);
    mapLayout.addMember(map);
    mapLayout.setHeight("100%");
View Full Code Here


    final MapWidget map = new MapWidget("mapOsm", "gwt-samples");

    final Toolbar toolbar = new Toolbar(map);
    toolbar.setButtonSize(Toolbar.BUTTON_SIZE_BIG);
    final GeocoderWidget geocoderWidget = new GeocoderWidget(map, "description", "Geocoder");
    toolbar.addMember(geocoderWidget);

    SelectItem geocoderSource = new SelectItem("geocoderSource", "");
    geocoderSource.setDefaultToFirstOption(true);
    geocoderSource.setOptionDataSource(getGeocoderSelectDataSource());
    geocoderSource.setDisplayField(FIELD_LABEL);
    geocoderSource.setValueField(FIELD_REGEX);
    geocoderSource.addChangeHandler(new ChangeHandler() {
      public void onChange(ChangeEvent event) {
        geocoderWidget.setServicePattern((String) event.getValue());
      }
    });
    DynamicForm geocoderSourceForm = new DynamicForm();
    geocoderSourceForm.setFields(geocoderSource);
    toolbar.addMember(geocoderSourceForm);
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.geocoder.client.GeocoderWidget

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.