Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rbrundritt/simpleuwpazuremaps
Simple code sample for using Azure Maps Web SDK in a UWP app
https://github.com/rbrundritt/simpleuwpazuremaps
Last synced: about 1 month ago
JSON representation
Simple code sample for using Azure Maps Web SDK in a UWP app
- Host: GitHub
- URL: https://github.com/rbrundritt/simpleuwpazuremaps
- Owner: rbrundritt
- License: mit
- Created: 2024-06-19T22:16:11.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-06-28T15:22:12.000Z (6 months ago)
- Last Synced: 2024-06-28T16:49:40.459Z (6 months ago)
- Language: C#
- Size: 1.19 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SimpleUwpAzureMaps
This is a simple code sample for using Azure Maps Web SDK in a UWP app.
This leverages WebView2 which has a lot more capabilties than the default WebView control in UWP (and less bugs). WebView2 is available in the [Microsoft.UI.Xaml library](https://www.nuget.org/packages/Microsoft.UI.Xaml/).
This sample listens for web requests to a specific domain (https://0.0.0.0) and maps them to a folder within the Assets folder of the project. This makes it easy to access these files in a similar way to them being hosted on a server.
![App screenshot](AppScreenshot.jpg)
## Running the sample
**Prerequesits:**
- Visual Stuios 2019 or later.
- UWP developer environment installed.
- An Azure Maps subscription key. [Create an Azure Maps key](https://learn.microsoft.com/en-us/azure/azure-maps/quick-demo-map-app#create-an-azure-maps-account)Once you have the prerequesits, open the project in Visual Studios and add your key to the `MapApp.html` file where it says ``.
## Related Resources
**UWP WebView2**
- https://learn.microsoft.com/en-us/microsoft-edge/webview2/get-started/winui2
- https://learn.microsoft.com/en-us/microsoft-edge/webview2/concepts/working-with-local-content?tabs=dotnetcsharp
- https://github.com/MicrosoftEdge/WebView2Samples/tree/main/SampleApps/webview2_sample_uwp**Azure Maps**
- [Documentation](https://learn.microsoft.com/en-us/azure/azure-maps/)
- [Code samples](https://samples.azuremaps.com/)## License
MIT