Example usage for com.google.gwt.maps.client.services GeocoderStatus ZERO_RESULTS

List of usage examples for com.google.gwt.maps.client.services GeocoderStatus ZERO_RESULTS

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.services GeocoderStatus ZERO_RESULTS.

Prototype

GeocoderStatus ZERO_RESULTS

To view the source code for com.google.gwt.maps.client.services GeocoderStatus ZERO_RESULTS.

Click Source Link

Document

No result was found for this GeocoderRequest.

Usage

From source file:org.rebioma.client.MapView.java

License:Apache License

@Override
public void onCallback(JsArray<com.google.gwt.maps.client.services.GeocoderResult> results,
        GeocoderStatus status) {//from   w w w  . ja va2 s. c  o m
    if (GeocoderStatus.OK.equals(status)) {
        mapGeocoderResult(results);
        handleHistoryEvent();
    } else if (GeocoderStatus.ZERO_RESULTS.equals(status)) {
        Window.confirm("Address not found. Add to the Madagascar Gazeteer?");
    } else { //failure
        for (Marker marker : geocoderMarkers) {
            marker.setMap((MapWidget) null);
        }
    }
}