UNPKG

@vtmap/vtmap-sdk-js

Version:

JS SDK for accessing Viettelmaps APIs

119 lines (72 loc) 5.87 kB
# Changelog ## Unreleased - **Revert:** add `driving-traffic` profile to Isochrone service. ## 0.13.3 **Add:** add `ip` as valid value for `proximity` parameter in the geocoding service ## 0.13.2 **Add:** add `fuzzyMatch` and `worldview` parameters to the geocoding service ## 0.13.1 **Fix:** Update `got` depdendency to 10.7.0 ## 0.13.0 **Add:** add `driving-traffic` profile to Isochrone service. ## 0.12.1 - **PATCH:** [remove unsupported `private` option](https://github.com/mapbox/mapbox-sdk-js/pull/405) from `createUpload`. ## 0.12.0 - **Add:** add `bounding box` parameter as a position option for `Static#getStaticImage.` - **Add:** add `padding` optional parameter for `Static#getStaticImage`. ## 0.11.0 - **Add:** add `fresh` parameter to `Styles#getStyle` to bypass the cached version of the style. - **Add:** add `routing` parameter to `Geocoding#forwardGeocode` and `Geocoding#reverseGeocoding`. - **Add:** add `driving-traffic` profile to `Optimization#getOptimization`. - **Add:** add `sortby` parameter to `Datasets#listDatasets`. - **Add:** add `Tilesets#updateTileset`. - **Add:** add `fallback`, `mapboxGLVersion` and `mapboxGLGeocoderVersion` to `Styles#getEmbeddableHtml`. - **Add:** add pagination support to `Tilesets#listTilesetJobs` and `Tilesets#listTilesetSources`. - **Breaking change:** `Uploads#createUpload`'s `mapId` parameter is now `tileset`, and `tilesetName` is now `name` to be consistent across the API. `mapId` and `tilesetName` are deprecated, but will still work and may be removed in a future release. - **Add:** add `private` option to `Uploads#createUpload`. - **Fix:** fixed an issue where array parameters containing falsy values (e.g. for the `proximity` parameter in `forwardGeocode`, where longitude or latitude coordinates are 0) were not being applied correctly. ## 0.10.0 - **Add:** add new parameters to `Tilesets#listTilesets`: `type`, `limit`, `sortBy`, `start` and `visibility`. - **Add:** add `Tilesets#tileJSONMetadata` method to retrieve a Tileset TileJSON metadata. - **Add:** add new `metadata` parameter to `Styles#getStyle` to preserve `mapbox:` specific metadata from the style. - **Add:** add new Tilesets methods `deleteTileset`, `createTilesetSource`, `getTilesetSource`, `listTilesetSources`, `deleteTilesetSource`, `createTileset`, `publishTileset`, `tilesetStatus`, `tilesetJob`, `listTilesetJobs`, `getTilesetsQueue`, `validateRecipe`, `getRecipe`, `updateRecipe`. - **Add:** add new `draft` parameter to `Styles#getStyle`, `Styles#deleteStyleIcon` and `Styles#getStyleSprite`, `Styles#getEmbeddableHtml` to work with draft styles. - **Fix:** Fix responses containing binary data when using `Static#getStaticImage`, `Styles#getStyleSprite` and `Styles#getFontGlyphRange`. - **Fix:** Fix requests for highres sprites in `Styles#getStyleSprite`. - **Fix:** set `position.bearing` to `0` if `position.pitch` is defined and `position.bearing` is not in the Static API. - **Fix:** use `tilesets.getRecipe` in tilesets API example. ## 0.9.0 - **Add:** add Isochrone API service. ## 0.8.0 - **Add**: add new style parameters to the Static Images API service: `addlayer`, `setfilter`, and `layer_id`. - **Breaking change**: `insertOverlayBeforeLayer` is now `before_layer` in the Static Images API service. This change uses the API's name for the field and to support that the field can be used with the new style parameter `addlayer`. ## 0.7.1 - **Fix:** add missing `geometry` key to Tilequery service. ## 0.7.0 - **Fix:** filter empty waypoints from map matching requests. - **Fix:** fix url token placement for service with clients. ## 0.6.0 - **Fix:** `Tokens#updateToken` can now set `null` value to `referrers` property to delete the property. - **Fix:** `Tokens#updateToken` can now set `null` value to `resources` property to delete the property. - **Breaking change**: change all references to `referrer`{s} to `allowedUrl`{s}. ## 0.5.0 - **Add:** Config for `Tokens#createToken` and `Tokens#updateToken` can now include the `referrers` property. ## 0.4.1 - **Fix:** Fix a CORS-related bug that caused Firefox to send preflight `OPTIONS` requests that were rejected by the server. This bug surfaced in Firefox with the Tilequery API, but may possibly have affected some other endpoints and some other browsers. ## 0.4.0 - **Breaking change & fix:** Config for `Static#getStaticImage` now includes a `position` property that can be either `"auto"` or an object with `coordinates`, `zoom`, etc., properties. This fixes buggy behavior with the `"auto"` keyboard by forcing it to be mutually exclusive with all other positioning options. - **Fix:** Fix bug in `Static#getStaticImage` that resulted in reversed coordinates when creating a polyline overlay. - **Fix:** Loosen the type validation on coordinates, since longitudes greater than 180 or less than -180 are valid for some APIs. ## 0.3.0 - **Change:** Rename `MapMatching#getMatching` to `MapMatching#getMatch`. - **Change:** Throw validation error if request configuration object includes invalid properties. This is a breaking change because it could cause your code to throw a new validation error informing you of a mistake in your code. But there is no change to the library's functionality: you'll just need to clean up invalid properties. ## 0.2.0 - **Add:** Add Optimization API service. ## 0.1.3 - **Fix:** Include all services in the UMD bundled client. Several were missing. ## 0.1.2 - **Chore:** Use `@mapbox/fusspot` for validation; remove the local implementation. ## 0.1.1 - **Fix:** `Directions#getDirections` and `Geocoding#forwardGeocode` stringify boolean query parameters like `steps` and `autocomplete`. ## 0.1.0 - Brand new codebase. Please read the documentation and try it out! The `mapbox` npm package is now deprecated in favor of the new `@mapbox/mapbox-sdk`.