dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.26k stars 1.76k forks source link

Map for WinUI #12694

Open TonyLugg opened 1 year ago

TonyLugg commented 1 year ago

Description

The absence of a WinUI from MAUI Maps is problematic. I recognize that MS does not have support for its Bing Maps in WinUI, which is the issue for MAUI. However, MS needs to understand that this absence prevents us from properly supporting Windows in our MAUI app.

Public API Changes

Add WinUI Bing Maps support for Microsoft.Maui.Controls.Maps.

Intended Use-Case

Need the map for WinUI.

VS bug #1747941

Depends on

mattleibow commented 1 year ago

This is frustrating.

Just linking some info for future peoples.

I do know the WinUI team is looking at issues these days, so please leave your vote on https://github.com/microsoft/microsoft-ui-xaml/issues/3024

ghost commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Mogikan commented 1 year ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

Why was it removed from backlog? It was there before win ui 3 release 2 years ago and then it suddenly disappeared. https://github.com/microsoft/microsoft-ui-xaml/commit/4f599318f001084c5ea86aadd21f5b2baa715a0f#comments

TonyLugg commented 1 year ago

Of course, everything gets moved to the backlog. It means it won't be done. I may stop giving feedback altogether, it's a waste of time.

TFreudi1 commented 1 year ago

Very frusting ! I have some map based Xamarin-Apps that run on Android/Windows/iOS and allthough I want, I can't move them to .NET MAUI due to the absence of a Windows Map control. All alternative products that I tested have license issues, or issues with bing maps, or don't show bing maps at all. And even if they would work it means that the #if WINDOWS preprocessor commands are back :-(

robloo commented 1 year ago

Use https://github.com/Mapsui/Mapsui. It's probably the best all-around map control left and it's now MIT and supports Maui in the upcoming version. Actually, XF was the best supported platform so I expect Maui support to be pretty good. I don't use Maui on my end but I just wanted to let you all know of this control.

mattleibow commented 1 year ago

Please leave a comment on https://github.com/microsoft/microsoft-ui-xaml/issues/3024 so the WinUI team can correctly prioritize features. We cannot implement this feature in Maui as the OS does not have maps for us to access.

TonyLugg commented 1 year ago

@robloo Thanks for the link. It looks like Mapsui uses OpenStreetMaps as its data source, which we found to be somewhat unreliable in certain areas. A pretty good free option though.

robloo commented 1 year ago

You can use whatever mapping provider you want. It is configurable. Bing maps was used on my end and it's fully supported. You just need the key/token same as other map controls.

TonyLugg commented 1 year ago

👍

TFreudi1 commented 1 year ago

MapSui not really work , I have 2 Pages and only the first time it shows a map on the map page. Itried a lot of things and opened an issue there. https://github.com/Mapsui/Mapsui/issues/1896

TFreudi1 commented 1 year ago

Looks like Mapsui is not a solution if you have multiple pages. I only get it to work with a complete new initialisation every time you slide the mappage in, this is not usable.

robloo commented 1 year ago

It certainly has issues but it's better than nothing and works in most cases. The project, while slow, accepts PRs. You can also fork the code.

TonyLugg commented 1 year ago

Come on Microsoft, give us Bing Maps. Apple and Google provide their map products, and we used to have Bing Maps on the Windows side.

andrasjani commented 1 year ago

still need it 🙏

TFreudi1 commented 1 year ago

Any progress on that ?

andrasjani commented 1 year ago

Any progress on that ?

There is a temporary solution in the toolkit which is based on webview. More info here: https://github.com/CommunityToolkit/Maui/releases/tag/1.0.0-maps

jfversluis commented 3 weeks ago

Looked into this for a little, but basically all the functionality that is implemented in .NET MAUI maps right now is missing for the WinUI version: https://github.com/microsoft/microsoft-ui-xaml/issues/3024#issuecomment-1932950478

So this is not really feasible to implement atm