I'm currently working with a map and I only want my users to be able to search by their own zip code. Is it possible to customize the functionality of it in this way? here is the only code I'm working with for it:
'map.addControl(
new MapboxGeocoder({
accessToken: mapboxgl.accessToken,
mapboxgl: mapboxgl
})
);'
You can limit the returned types by using the
types
property to values defined here: https://docs.mapbox.com/api/search/#data-types