Example usage for com.google.gwt.maps.client.base LatLng getToUrlValue

List of usage examples for com.google.gwt.maps.client.base LatLng getToUrlValue

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.base LatLng getToUrlValue.

Prototype

public final native String getToUrlValue(int precision) ;

Source Link

Document

Returns a string of the form "lat,lng" for this LatLng.

Usage

From source file:org.rebioma.client.maps.EnvLayerLegend.java

License:Apache License

@Override
public void setDisplay(LatLng point, String value) {
    if (value == null) {
        value = "";
    }/*from www. ja  v a2s. co  m*/
    String pointText = point.getToUrlValue(7);
    if (value.length() < 1) {
        valueHtml.setHTML("No Data @ " + pointText);
    } else {
        valueHtml.setHTML(value + " " + data.getUnits() + " @ " + pointText);
    }
    this.setVisible(true);
}