Example usage for com.google.gwt.maps.client.event HasMouseEvent getLatLng

List of usage examples for com.google.gwt.maps.client.event HasMouseEvent getLatLng

Introduction

In this page you can find the example usage for com.google.gwt.maps.client.event HasMouseEvent getLatLng.

Prototype

public HasLatLng getLatLng();

Source Link

Document

The latitude/longitude that was below the cursor when the event occurred.

Usage

From source file:com.google.mobile.trippy.web.client.view.MapView.java

License:Apache License

@Override
public void setMapClickListener(final MapClickListener mapClickListener) {
    Event.addListener(getMap(), "click", new MouseEventCallback() {

        @Override/*from   w ww . j  a  v a2  s.c om*/
        public void callback(HasMouseEvent event) {
            mapClickListener.onMapClick(event.getLatLng());
        }
    });
}