Hi everyone,
I’m currently working on a map that uses a data source from a Locations table. This table is filtered by custom states corresponding to “Eventos”, “Coworks”, and “Empresas”.
In addition to these filters, I need to add an input field labeled “Buscar ciudad” (Search city). The goal is that when a user enters a city name, the map should center on that city and display the nearby events.
I’ve tried several approaches to combine the city search functionality with my existing filtered map setup, but so far I haven’t been able to achieve the desired result. The challenge seems to be synchronizing the map’s location update with the dynamic filtering of events based on proximity to the searched city.
Has anyone successfully implemented something similar or have any suggestions on how to approach this? Any tips on managing the dynamic data source for the map in conjunction with the custom state filters and city search would be greatly appreciated.
Thanks in advance for your help!
Best,
