mapbox / mapbox-gl-geocoder

Geocoder control for mapbox-gl-js using Mapbox Geocoding API
https://mapbox.com/mapbox-gl-js/example/mapbox-gl-geocoder/
ISC License
364 stars 180 forks source link

Geocode does not work with SwiperJS #512

Open Rich2020 opened 1 year ago

Rich2020 commented 1 year ago

Take a look at this JSFiddle: https://jsfiddle.net/e59toaz4/

Make sure you expand the preview window so that you can see the geocode input. If you type/enter a place and click one of the suggestions, the map is not auto-positioned. However, if you hit return/enter after entering a place, it works as expected.