Was wondering if it is possible to build in a feature that returns the lat and lon coordinates of a click event on a map? The goal would be to allow the user to click on the map and have a new point feature added in that place based on the returned coordinates.
Was wondering if it is possible to build in a feature that returns the lat and lon coordinates of a click event on a map? The goal would be to allow the user to click on the map and have a new point feature added in that place based on the returned coordinates.
Similar examples I have found a working example using the tmap package https://stackoverflow.com/questions/76335139/add-location-to-interactive-map-with-a-click-using-tmap-package-and-r-shiny