Retool Mapbox Component

Goal - Trying to fetch Lat, long and address based on the user click on the mapbox component, but not able to get the onclick function work as intended

If anyone has tried this before, based on the point selected on the map will need to populate certain fields

1 Like

@Kabirdas @joeBumbaca if you have any idea how to implement this, have been stuck for long

1 Like

Hi @AmanKr :wave:

The built-in map component doesn't support click handlers at the moment but a number of people have set up a custom component to display maps. Mapbox themselves have a nice quickstart here that you can explore. There are also a couple of examples folks have posted on the forums that include the full custom component code they're using.

Hopefully that's helpful, but let me know if you have any questions getting set up! Otherwise, we can let you know here if we do include click handlers for the built-in component :slightly_smiling_face:

1 Like