tillnagel / unfolding

A library to create interactive maps and geovisualizations in Processing and Java
http://unfoldingmaps.org
Other
477 stars 245 forks source link

Geo-location at mouse position #162

Closed skatewizard closed 5 years ago

skatewizard commented 5 years ago

Hello! How do I get more precise geo-location on mouse position?

// Shows geo-location at mouse position Location location = map.getLocation(mouseX, mouseY); text(location.toString(), mouseX, mouseY);

When I zoom in on the map I need more precise numbers than example "52.131"...

Thanks!

tillnagel commented 5 years ago

You can directly access the values via location.getLat() and location.getLon() instead of relying on the toString() method which only shows three digits.