Questions tagged [mapbox-gl-geocoder]
5 questions
2
votes
2 answers
How to use Mapbox geocoder with Quasar select?
I'm trying to create an Autocomplete component using the Mapbox Geocode API and Quasar's component. It appears though that Mapbox requires using their input (could be wrong about this), so I'm having trouble hooking it up to the…

J. Jackson
- 3,326
- 8
- 34
- 74
0
votes
1 answer
Mapbox-gl-geocoder in Next.JS - TypeError: EventEmitter is not a constructor
I have been using Mapbox-GL and mapbox-gl-geocoder in a Next.JS version 13 project and they have worked fine up until now. I noticed when accessing the map that I get this error:
EventEmitter is not a constructor
at new MapboxGeocoder…

Fabian Svensson
- 89
- 5
0
votes
1 answer
Change countries option after init with Mapbox Geocoder
I'm using the MapboxGeocoder with the countries option set to a default country, but I would like to update this option if the user changes the country they want to search in.
Current code:
// Add the control to the map.
const geocoder = new…

dpDesignz
- 1,909
- 10
- 34
- 70
0
votes
1 answer
MapBox control buttons are empty
The polygon and Trash Control Buttons for MapBox are seen empty as below (functionality works perfectly).
Output
this.draw = new MapboxDraw({
userProperties: true,
displayControlsDefault: false,
controls: {
combine_features:…

Viral Panchal
- 1
- 2
0
votes
1 answer
How to detect click on mapbox-gl-geocoder results (suggestions)?
When I type in and get a dropdown with suggestions (suggestions-wrapper) - is it possible to get the click event on an item in the dropdown list? Thanks.

SERG
- 3,907
- 8
- 44
- 89