|
| 1 | +--- |
| 2 | +title: Release notes - Map Control |
| 3 | +titleSuffix: Microsoft Azure Maps |
| 4 | +description: Release notes for the Azure Maps Web SDK. |
| 5 | +author: stevemunk |
| 6 | +ms.author: v-munksteve |
| 7 | +ms.date: 12/16/2022 |
| 8 | +ms.topic: reference |
| 9 | +ms.service: azure-maps |
| 10 | +services: azure-maps |
| 11 | +--- |
| 12 | + |
| 13 | +# Web SDK map control release notes |
| 14 | + |
| 15 | +This document contains information about new features and other changes to the Map Control. |
| 16 | + |
| 17 | +## [3.0.0-preview.2](https://www.npmjs.com/package/azure-maps-control/v/3.0.0-preview.2) (December 16, 2022) |
| 18 | + |
| 19 | +### New features |
| 20 | + |
| 21 | +Add `progressiveLoading` and `progressiveLoadingInitialLayerGroups` to [StyleOptions][StyleOptions] to enable the capability of loading map layers progressively. This feature improves the perceived loading time of the map. For more information, see [2.2.2 release notes](#222-december-15-2022). |
| 22 | + |
| 23 | +The preview is available on [npm](https://www.npmjs.com/package/azure-maps-control/v/3.0.0-preview.2) and CDN. |
| 24 | + |
| 25 | + - Install [azure-maps-control@next][azure-maps-control] to your dependencies: |
| 26 | + ```shell |
| 27 | + npm i azure-maps-control@next |
| 28 | + ``` |
| 29 | + |
| 30 | + - Reference the following CSS and JavaScript in the `<head>` element of an HTML file: |
| 31 | + ```html |
| 32 | + <link href="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3.0.0-preview.2/atlas.min.css" rel="stylesheet" /> |
| 33 | + <script src="https://atlas.microsoft.com/sdk/javascript/mapcontrol/3.0.0-preview.2/atlas.min.js"></script> |
| 34 | + ``` |
| 35 | + |
| 36 | +### Bug fixes |
| 37 | + |
| 38 | +- Fix an issue that the ordering of user layers wasn't preserved after calling `map.layers.move()`. |
| 39 | +
|
| 40 | +- Fix the inability to disable traffic incidents in [TrafficControlOptions][TrafficControlOptions] when `new atlas.control.TrafficControl({incidents: false})` is used. |
| 41 | +
|
| 42 | +- Add `.atlas-map` to all css selectors to scope the styles within the map container. The fix prevents the css from accidentally adding unwanted styles to other elements on the page. |
| 43 | +
|
| 44 | +## [3.0.0-preview.1](https://www.npmjs.com/package/azure-maps-control/v/3.0.0-preview.1) (November 18, 2022) |
| 45 | +
|
| 46 | +### New features |
| 47 | +
|
| 48 | +This update is the first preview of the upcoming 3.0.0 release. The underlying [maplibre-gl][maplibre-gl] dependency has been upgraded from `1.14` to `3.0.0-pre.1`, offering improvements in stability and performance. The preview is available on [npm](https://www.npmjs.com/package/azure-maps-control/v/3.0.0-preview.1). |
| 49 | +
|
| 50 | + - Install [azure-maps-control@next][azure-maps-control] to your dependencies: |
| 51 | + ```shell |
| 52 | + npm i azure-maps-control@next |
| 53 | + ``` |
| 54 | +
|
| 55 | +### Bug fixes |
| 56 | +
|
| 57 | +- Fix a regression issue that prevents IndoorManager from removing a tileset by using |
| 58 | + ```js |
| 59 | + indoorManager.setOptions({ |
| 60 | + tilesetId: undefined |
| 61 | + }) |
| 62 | + ``` |
| 63 | +
|
| 64 | +## [2.2.2](https://www.npmjs.com/package/azure-maps-control/v/2.2.2) (December 15, 2022) |
| 65 | +
|
| 66 | +### New features |
| 67 | +
|
| 68 | +Add `progressiveLoading` and `progressiveLoadingInitialLayerGroups` to [StyleOptions][StyleOptions] to enable the capability of loading map layers progressively. This feature improves the perceived loading time of the map. |
| 69 | +- `progressiveLoading` |
| 70 | + - Enables progressive loading of map layers. |
| 71 | + - Defaults to `false`. |
| 72 | +- `progressiveLoadingInitialLayerGroups` |
| 73 | + - Specifies the layer groups to load first. |
| 74 | + - Defaults to `["base"]`. |
| 75 | + - Possible values are `base`, `transit`, `labels`, `buildings`, and `labels_places`. |
| 76 | + - Other layer groups are deferred such that the initial layer groups can be loaded first. |
| 77 | +
|
| 78 | +### Bug fixes |
| 79 | +
|
| 80 | +- Fix an issue that the ordering of user layers wasn't preserved after calling `map.layers.move()`. |
| 81 | +
|
| 82 | +- Fix the inability to disable traffic incidents in [TrafficControlOptions][TrafficControlOptions] when `new atlas.control.TrafficControl({incidents: false})` is used. |
| 83 | +
|
| 84 | +## Next steps |
| 85 | +
|
| 86 | +Explore samples showcasing Azure Maps: |
| 87 | +
|
| 88 | +[Azure Maps Samples](https://samples.azuremaps.com) |
| 89 | +
|
| 90 | +Stay up to date on Azure Maps: |
| 91 | +
|
| 92 | +[Azure Maps Blog](https://techcommunity.microsoft.com/t5/azure-maps-blog/bg-p/AzureMapsBlog) |
| 93 | +
|
| 94 | +[azure-maps-control]: https://www.npmjs.com/package/azure-maps-control |
| 95 | +[maplibre-gl]: https://www.npmjs.com/package/maplibre-gl |
| 96 | +[StyleOptions]: /javascript/api/azure-maps-control/atlas.styleoptions |
| 97 | +[TrafficControlOptions]: /javascript/api/azure-maps-control/atlas.trafficcontroloptions |
0 commit comments