Skip to content

Instantly share code, notes, and snippets.

@rterp
Last active March 2, 2017 17:11
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save rterp/d8e3879b02acec5a9ba3659437f4026e to your computer and use it in GitHub Desktop.
GoogleMap map = googleMapView.createMap(mapOptions, false);
map.addMouseEventHandler(UIEventType.click, (GMapMouseEvent event) -> {
LatLong latLong = event.getLatLong();
System.out.println("Latitude: " + latLong.getLatitude());
System.out.println("Longitude: " + latLong.getLongitude());
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment