Package org.geomajas.plugin.geocoder.command.dto

Examples of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringResponse


    });
  }

  public void goToLocation(final CommandResponse commandResponse, final String location) {
    if (commandResponse instanceof GetLocationForStringResponse) {
      GetLocationForStringResponse response = (GetLocationForStringResponse) commandResponse;
      if (response.isLocationFound()) {
        removeAltWindow();
        handlerManager.fireEvent(new SelectLocationEvent(map, response));
      } else {
        List<GetLocationForStringAlternative> alternatives = response.getAlternatives();
        if (null != alternatives && alternatives.size() > 0) {
          handlerManager.fireEvent(new SelectAlternativeEvent(map, alternatives));
        } else {
          SC.say(messages.locationNotFound(location));
        }
View Full Code Here

TOP

Related Classes of org.geomajas.plugin.geocoder.command.dto.GetLocationForStringResponse

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.