Releases: mapbox/mapbox-gl-geocoder
Releases · mapbox/mapbox-gl-geocoder
v5.0.3
v5.0.2
5.1.0-beta.0
From the changelog:
Features / Improvements 🚀
- Added version="v5"|"v6" flag to the options of the MapboxGeocoder class which makes it possible to use v6 endpoint instead of v5 by default for geocoding. #485. For more details please refer to v6 API documentation.
v5.0.0
From the changelog:
Breaking Changes ⚠️
- Adds Mapbox attribution footer. As we synthesize data sources in the future, based on data results there may be more lines. The footer is pretty small and unobtrusive, but if this is an issue for your product please reach out to your Technical Account Management (TAM) representative #438
Features / Improvements 🚀
- Enables use of the value
'ip'
forproximity
to bias around a user's location #453 - Adds
setAccessToken
method to update the accessToken after the Geocoder has been initialized #449 - Added geolocate functionality to find user's location via the Browser API #444
- Upgraded system font stack to include Apple fonts. This is used for text if Open Sans is not available #438
- Adds
flipCoordinates
boolean option to supportlon,lat
coordinate order for reverse geocodes #435
Dependency update
- Bumps
nanoid
to v3.1.31 to resolve security vulnerability warning. - Adds
babelify
to build process to ensure mapbox-gl-geocoder remains ES5-compatible. - Adds
events
dependency to resolve a Node emulation issue for use in packagers such as Vite #451
Bug fixes 🐛
v4.0.0
This is the full GA release for the v4.0.0 changes described in #197.
From the changelog:
Breaking Changes ⚠️
- Support for the Mapbox GL JS 0.47.0 API. This is compatible with 0.47.0 and later, and may not be compatible with earlier versions #219.
- Obtain language from user's browser settings #195
- Localize placeholder based on language set in constructor options #150
trackProximity
turned on by default #195
Features / Improvements 🚀
- Mapbox events upgraded to v0.2.0 for better handling #212
- Pass
flyTo
options to the map on result selection on both map#flyTo and map#fitBounds operations #214 and #227 - Bump
suggestions
dependency to v1.4.x - Adds the
marker
constructor option that allows adding the selected result to the map as a marker. Adding the marker to the map is now the default behavior. #219. - Add
get
andset
methods for constructor options #226 - Add
collapsed
option to collapse the geocoder controller into a button until hovered or focused #222 - Expose
clear
as public method #115
Bug Fixes 🐛
v4.0.0-beta.0
prepare v4.0.0-beta.0 release