- Fix potential XSS when rendering place name #547
- Bumps
form-datato v4.0.4
- Introduce
useBrowserFocusoption to use the browser's native focus management instead of the geocoder's custom focus management. This is useful for accessibility.
- Updates event service to latest schema
- Bumps
mapbox-sdk-jsto v0.16.1
- Fix
setPlaceholderso that whensetPlaceholderis called afterwards it return updated placeholder string #502 - Fixed support of mapbox-gl@3
- Fix string matching and regular expressions to remove security vulnerabilities and meet code scan compliance #457
- 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
- Enables use of the value
'ip'forproximityto bias around a user's location #453 - Adds
setAccessTokenmethod 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
flipCoordinatesboolean option to supportlon,latcoordinate order for reverse geocodes #435
- Bumps
nanoidto v3.1.31 to resolve security vulnerability warning. - Adds
babelifyto build process to ensure mapbox-gl-geocoder remains ES5-compatible. - Adds
eventsdependency to resolve a Node emulation issue for use in packagers such as Vite #451
- Remove IE11-specific security vulnerability in
createIconmethod #446 - Resolve with empty results response when the
externalGeocodermethod returns null #446
- Adds support for
autocomplete,fuzzyMatch,routing, andworldviewparameters - Bumps
mapbox-sd-jsto v0.13.2 to supportfuzzyMatchandworldviewparameters
- Bumps
mapbox-sdk-jsto v0.13.1 to resolve issue withgotlibrary.
- Prevents interpretation of forward geocoding requests as reverse geocoding requests #424
- Added russian placeholder #409
- Fixed an error in the demo when no results are found #391
- Fixed
setMinLengthto correctly apply theminLengthproperty to the typeahead #399 - Updated the
mapbox-glpeerDependency to work with GL JS 2 #413
- Added option for a promise based externalGeocoder #385
- Support passing an
HTMLElementas the container #311
- Disable
proximityoption whenreverseGeocodeis enabled since it is not supported by the Mapbox Geocoding API #327 - Fixed the display of SVG icons in IE11 #341
- Removed an escape character from the CSS which caused issues importing into a SASS file #343
- Fixed a bug where
resultsevent was not being triggered onsetInput, by ensuringsetInputbehaves in the same manner as akeyDownevent, returning suggestions based on the input #345 - Fix a bug where the geocoder did not work when used on a map inititalized or viewed at a latitude or longitude of 0 #350
- Fix a bug where geocoding responses without a center would try to add a Marker #301
- Fix a bug where result was not selected on subsequent
localGeocodersearches #315
- Added Persian translation for
placeholder#322
- Supports adding a geocoder to an arbitrary HTML element so it can be used without a map #270.
- Fix event deduplication #298.
- Add a paste event handler to ensure that paste events are recognized by the geocoder and trigger searches #300.
- Adds
getOriginandsetOriginfor alternative geocoding endpoints. - Adds
requestandheadersto geocoding response object for endpoint swap testing.
- Specify version range of
mapbox-glinpeerDependencies. #285.
- Adds a
localGeocoderOnlymode that allows queries against alocalGeocoderwithout making calls to the Mapbox search API. #275.
- Add an option to use the
mapbox.places-permanentgeocoding endpoint (requires an enterprise license). For more details onmapbox.places-permanentsee https://docs.mapbox.com/api/search/#mapboxplaces-permanent. (#272)
- Render an error message when a search was unsuccessful (#231)
- Render an error message when a search returned no results (#232)
- Fix issue where selection events are logged with the incorrect
queryStringvalue. #262
- Fix issue with blur event handlers that prevented search input from collapsing on blur if both
clearOnBlurandcollapsedoptions are set to true #257.
- Add
clearAndBlurOnEscoption to geocoder #240 - Adds
clearOnBluroption to clear geocoder input on blur #240
- Fix CSS issue where close button was not being centered #241
- Namespace all CSS to prevent collisions #248
- Fix CSS issue with width on input when
collapsedenabled #238
- 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
trackProximityturned on by default #195
- Mapbox events upgraded to v0.2.0 for better handling #212
- Pass
flyTooptions to the map on result selection on both map#flyTo and map#fitBounds operations #214 and #227 - Bump
suggestionsdependency to v1.4.x - Adds the
markerconstructor 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
getandsetmethods for constructor options #226 - Add
collapsedoption to collapse the geocoder controller into a button until hovered or focused #222 - Expose
clearas public method #115
- Upgrade dev dependencies #216
- Remove hardcoded IDs in bounding box exception list #217
- Fix double map
moveendevent #229 - Fix duplicate
resultevent bug #218 - Fix trapped focus bug #220
- Resolve npm publish failure
- Reduce bundle size by removing unnecessary dependencies needed for event logging #188
- Fix IE11 bug originating from event logging #194
- Emit a
clearevent when the user backspaces into an empty search bar or selects all existing text and deletes it.
- Fix bug where events were logging -1 as resultIndex
- Enable interaction event logging
- [bug] Ensures proximity is passed to client #180
- Makes
reverseGeocodean option (defaults to false) #177 - Fixes string parsing for multiple values passed to
countries,types, andlanguages#177 - More generous coordinate parsing for reverse geocodes #177
- Increment version to publish public package
- Uses mapbox-sdk-js to handle the client #175
- Adds support for reverse geocoding #175
- Supports custom origin #175
- Adds
reverseModeas an option for sorting results #175
Breaking changes:
countryis nowcountriesfor options to pass into geocoder
- Add filter option #133
- Add localGeocoder option #136
- Check for shadowRoot retargeting for keypressdown event #134
- Bump suggestions version which includes:
- Adds option for language parameter #126.
- Different background colors for hover and active states #110
- Add limit and minLength options #103
- Add query parameter to loading event #102
- Add automatic deployment to s3 #100
- Move package to @mapbox namespace #90
- Various bug and documentation fixes
- Add
.onRemovemethod to be used by the Mapbox GL JS IControl API
- Support for the Mapbox GL JS 0.27.0 API. This is compatible with 0.27.0 and later, and not compatible with earlier versions.
Breaking changes:
setInputandquerymethods no longer accept a[lng, lat]array. If you'd like to search for a location and you have that data as[lng, lat], call.join()on the array before passing it to the geocoder control.containeroption removed - attaching the control outside of the map is no longer supportedpositionoption removed - theaddControlmethod now specifies the positionproximityoption is now specified as a{ longitude, latitude }object instead of a two-element array- Other geocoder options match the API of the Mapbox JavaScript SDK
.firemethod removed- Now exports
MapboxGeocoderrather than attaches tomapbox.Geocoder
- Eliminate reliance on mapboxgl.util in preparation for mapbox-gl-js#1408
- Fix debounce timing bug (#64)
- Provide reasonable exceptions to country bboxes when
flyTo=true
- [BUG] Bump
suggestions@v1.3.1to fix lagged results #48 minified library. - [BUG] Fix mapboxgl check #53
- [FEATURE] Add option
bboxto limit suggestions to a given bounds. #43 - [INTERNAL] Drop request for plain
xmlhttprequest. This was effecting the filesize of the minified library.
- [BUG] Broken
flyToanimation when a country is selected. #44 - [BUG] Wrap mapboxgl.utils.wrap when coordinates are passed to query method. #45
- [FEATURE] Add a
resultsevent when geocoder returns results. #39 - [FEATURE]
setInputmethod to initialize input without making an API request.
- [PERFORMANCE] Swap mapbox-sdk-js out for request
- [FEATURE] Pass a custom zoom option #33
- [BUG] Dont call query function when input value is empty
- [BUG] Disable geocoder on metaKey keydown event
- [BUG] Drop the poorly supported toggle method
- [BUG] Return error if mapboxgl is not included.
- [BUG] Bump suggestions pkg to support a no filter option #36