@itwin/map-layers-formats
v5.14.2
Published
Enables additional map-layers formats in iTwin.js
Downloads
28,853
Readme
@itwin/map-layers-formats
Copyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.
Description
The @itwin/map-layers-formats Enables additional map-layers formats in iTwin.js
List of formats
- ArcGIS Feature service
- Google Maps
- Azure Maps
Azure Maps basemaps
@itwin/map-layers-formats can register Azure Maps support after IModelApp.startup:
await MapLayersFormats.initialize();Provide the Azure Maps subscription key through IModelApp startup:
await IModelApp.startup({
mapLayerOptions: {
["AzureMaps"]: {
key: "subscription-key",
value: "abc123",
},
},
});Then apply Azure Maps basemaps through the extension API:
AzureMaps.applyBackgroundMap(viewport.displayStyle, BackgroundMapType.Hybrid);