This is probably a pretty simple question, and I'm hoping someone can point me to an example.
I'm moving from a GeoJSON-based map layer on Google Maps to a CartoDb layer on Leaflet. When I click on a point on a GeoJSON layer, the feature is returned as an object, so it's easy to pop up an infobox, make an Ajax call to update some other part of the screen, etc.
How do I do that with a CartoDb layer? I basically want to say "highlight the point nearest to where I clicked on the map, pop up a custom infobox, and fire an event so I can update other data on the page (that's too complex to fit in an infobox).
This seems like it'd be a common thing, can someone point me to an example?
Thanks,
Tac