Skip to content

Get Latitude and Longitude of Mouse Click

Rob Terpilowski edited this page Feb 15, 2017 · 2 revisions
map.addUIEventHandler(UIEventType.click, (JSObject obj) -> {
    LatLong ll = new LatLong((JSObject) obj.getMember("latLng"));
    System.out.println("LatLong: lat: " + ll.getLatitude() + " lng: " + ll.getLongitude());
});

test

Clone this wiki locally