Azure Maps SDK support for old Webview

Nir Zioni 0 Reputation points
2024-06-25T14:50:18.5966667+00:00

We found that the Azure Maps SDK is using Spread syntax which is not supported in the Webview we use in our Windows app (This is an old Webview based on an old Edge version and can't be upgraded to the new Webview)

Is there any technical solution or workaround that we can use in order to use Azure Maps?
Or do you have an older SDK version that does not use the Spread syntax that we can use?

Thanks
Nir

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
736 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rbrundritt 18,671 Reputation points Microsoft Employee
    2024-06-28T14:59:24.4266667+00:00

    Even before spread syntax was being used in Azure Maps it was a ton of work to get it to work in the old WebView and then the performance wasn't great. The old WebView has very limited support of WebGL and the Azure Maps Web SDK makes heavy use of WebGL. I simply would not recommend using the old WebView. If WebView2 isn't an option (a bit surprised if it isn't), you could also use CefSharp which is a wrapper of chromium. I used the old webview in a windows app ages ago before WebView2 was available, and quickly switched to CefSharp as there simply too many issues with the old WebView. I've since switched to WebView2 and never looked back. I have a simple sample of Azure Maps in a UWP via WebView2 here: https://github.com/rbrundritt/SimpleUwpAzureMaps

    I'm also working on a Maui wrapper that leverages WebView2 to expose a .NET API for the Azure Maps Web SDK.

    What is the reason why you have to use the old WebView?

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.