I have a GeoJSON dataset of about 30,000 polygons each of which has a name and address attached. I have uploaded this to Mapbox as a tileset.
Is it possible to create a 'search by attribute' box using Mapbox GL JS, where the user can start typing and the search box provides results based on the name and address for the user to choose from? Along the lines of this Mango example:
Is this possible in Mapbox? I could do it by running something like SELECT * FROM tiles WHERE name LIKE '%venet%' or address LIKE '%venet%' against the tileset, and then wiring up the results to my own dropdown, but I don't know if Mapbox JS supports that kind of Ajax query. or whether Mapbox JS provides a widget for doing this.
I've done this before in Carto.JS using custom code and a SQL LIKE query, but I don't know if it's possible with Mapbox.
