An update to Azure Maps Lite for UWP

Azure Maps Lite for UWP SDK was released more than a year ago. Over the year, there is new capabilities expose thought REST APIs and it’s time to update this SDK.
You can install the latest Azure Maps Lite SDK for UWP thru nuget CLI
PM> Install-Package AzureMapsLite -Version 1.0.0
What’s NEW for this release?
- Azure Maps Lite SDK now support x86, x64, ARM, ARM64.
The initial release only support x86 platform, this create the problem for supporting other platforms. With these release, all available platforms are now supported. - UWP MapControl Tile support.
The initial release of the SDK only support the Tile features by returning bitmap image of the requested area. With this release, you can add Azure Maps Tile to your MapControl with zero effort.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Windows.UI.Xaml.Controls.Maps; | |
// This service returns a vector or raster tile with size 256x256 or 512x512, given the x and y coordinates and zoom level. | |
// Zoom level ranges from 0 to 22. | |
MapTileSource baseTile = new MapTileSource(new AzureMapTile("<Your Azure Maps key>").TileSource); | |
// Returns a tile containing borders, roads, and labels, and can be overlaid on other tiles. | |
// Normally use inconjunction with Satellite image tile to build a hybird map. | |
MapTileSource baseTile = new MapTileSource(new AzureMapTile("<Your Azure Maps key>", AzureMapsLite.MapTileLayer.hybrid).TileSource); | |
// Returns a tile of just the map's label information. | |
MapTileSource baseTile = new MapTileSource(new AzureMapTile("<Your Azure Maps key>", AzureMapsLite.MapTileLayer.labels).TileSource); | |
// Map canvas complete with shaded relief tiles. Zoom levels 0-6 (inclusive) are supported. | |
// png is the only supported TileFormat and only available MapTileSize is 512. | |
MapTileSource baseTile = new MapTileSource(new AzureMapTile("<Your Azure Maps key>", AzureMapsLite.MapTileLayer.terra, MapTileStyle.shaded_relief).TileSource); | |
// This service returns a satellite image tile with size 256x256, given the x and y coordinates and zoom level. | |
// Zoom level ranges from 0 to 18. | |
// It only provide satellite image alone, if you need road and other label you have to overaly baseTile with label option on. | |
// You need to set your Azure Maps to use S1 pricing tier. | |
MapTileSource satelliteTile = new MapTileSource(new AzureMapImageTile("<Your Azure Maps key>").TileSource); | |
// This service serves 256 x 256 pixel tiles showing traffic flow. | |
// It is transparent and can be overlay on basic or satellite image tile. | |
// Default TrafficFlowTileStyle is set to absolute. Option for reducedsensitivity, relative, relativedelay are also available. | |
MapTileSource trafficTile = new MapTileSource(new AzureMapTrafficTile("<Your Azure Maps key>").TileSource); | |
MapTileSource trafficTile = new MapTileSource(new AzureMapTrafficTile("<Your Azure Maps key>", TrafficFlowTileStyle.reducedsensitivity).TileSource); | |
MapTileSource trafficTile = new MapTileSource(new AzureMapTrafficTile("<Your Azure Maps key>", TrafficFlowTileStyle.relative).TileSource); | |
MapTileSource trafficTile = new MapTileSource(new AzureMapTrafficTile("<Your Azure Maps key>", TrafficFlowTileStyle.relativedelay).TileSource); | |
// This service provides information on traffic incidents inside a given bounding box, based on the current Traffic Model ID. | |
// Overlay with basic or satellite image tile to produce hybrid map. | |
MapTileSource trafficIncidentsTile = new MapTileSource(new AzureMapIncidentTile("<Your Azure Maps key>", TrafficIncidentDetailStyle.night).TileSource); | |
MapTileSource trafficIncidentsTile = new MapTileSource(new AzureMapIncidentTile("<Your Azure Maps key>", TrafficIncidentDetailStyle.s1).TileSource); | |
MapTileSource trafficIncidentsTile = new MapTileSource(new AzureMapIncidentTile("<Your Azure Maps key>", TrafficIncidentDetailStyle.s2).TileSource); | |
MapTileSource trafficIncidentsTile = new MapTileSource(new AzureMapIncidentTile("<Your Azure Maps key>", TrafficIncidentDetailStyle.s3).TileSource); |
- Bugs fix for GetRouteDirections
Previously, RouteResultGuidance and summaryOnly option for RouteRepresentation was missing. With these release, the bugs were addressed.
What’s Upcoming?
Azure Maps team also announced that in coming weeks, will release the preview support of Weather Service for Azure Maps. This is the effort of partnership with AccuWeather, a leading weather service provider to provide real time around the globe weather information.
Azure Maps Lite SDK will update accordingly to support the new services when it is available.
If you have any suggestion or issue, please feel free to write to me.