Skip to content
Prev 28970 / 29559 Next

A leaflet question

Hmmm.  Are you looking to see which polygon the user clicks within?  If so,
perhaps look at sf::st_contains().  If that would do the trick then you
could skip casting `tarrant` to sp (leave it as sf object).  Then cast the
contents of click to to sf POINT using sf::st_as_sf().
On Wed, Jun 1, 2022 at 2:22 PM Erin Hodgess <erinm.hodgess at gmail.com> wrote: