Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverheilig/webview2map
Sample for PTV Developer within a WinForms application
https://github.com/oliverheilig/webview2map
maplibre-gl-js maps ptv-developer winforms
Last synced: 10 days ago
JSON representation
Sample for PTV Developer within a WinForms application
- Host: GitHub
- URL: https://github.com/oliverheilig/webview2map
- Owner: oliverheilig
- License: mit
- Created: 2024-11-10T13:25:44.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-12-09T16:37:47.000Z (13 days ago)
- Last Synced: 2024-12-09T17:42:22.096Z (13 days ago)
- Topics: maplibre-gl-js, maps, ptv-developer, winforms
- Language: HTML
- Homepage:
- Size: 189 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WebView2Map
Sample for PTV Developer within a WinForms applicationDemonstrates how to:
* Utilize [WebView2](https://developer.microsoft.com/microsoft-edge/webview2) to display the PTV Developer [Vector Maps API](https://developer.myptv.com/en/documentation/vector-maps-api).
* Integrate interactive routing using the PTV Developer [Routing Api](https://developer.myptv.com/en/documentation/routing-api) and [maplibre-gl-directions](https://github.com/maplibre/maplibre-gl-directions).
* Bridge api calls between Winforms and WebView2.Get your free API key at https://developer.myptv.com/ and add it in [Form1.cs](https://github.com/oliverheilig/WebView2Map/blob/main/Form1.cs).
**Note:** It seems sometimes the WebView2 runtimes folder isn't copied at the initial build. In this case just clean and rebuild the solution.
![screenshot](https://raw.githubusercontent.com/oliverheilig/WebView2Map/main/screenshot.png)