maui icon indicating copy to clipboard operation
maui copied to clipboard

Map for WinUI

Open TonyLugg opened this issue 2 years ago • 10 comments

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

TonyLugg avatar Jan 16 '23 17:01 TonyLugg

This is frustrating.

Just linking some info for future peoples.

  • This is the reason: https://github.com/dotnet/maui/issues/11169#issuecomment-1306893533
  • WinUI issue: https://github.com/microsoft/microsoft-ui-xaml/issues/3024
  • Proposal for a workaround: https://github.com/CommunityToolkit/Maui/issues/605
  • Draft for that workaround: https://github.com/CommunityToolkit/Maui/pull/604

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

mattleibow avatar Jan 16 '23 17:01 mattleibow

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.

ghost avatar Jan 17 '23 19:01 ghost

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

Mogikan avatar Feb 15 '23 18:02 Mogikan

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.

TonyLugg avatar Feb 15 '23 18:02 TonyLugg

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 :-(

TFreudi1 avatar Mar 05 '23 11:03 TFreudi1

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.

robloo avatar Mar 10 '23 04:03 robloo

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.

mattleibow avatar Mar 10 '23 07:03 mattleibow

@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.

TonyLugg avatar Mar 10 '23 13:03 TonyLugg

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.

robloo avatar Mar 10 '23 13:03 robloo

👍

TonyLugg avatar Mar 10 '23 13:03 TonyLugg

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 avatar Mar 20 '23 15:03 TFreudi1

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.

TFreudi1 avatar Mar 21 '23 12:03 TFreudi1

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.

robloo avatar Mar 21 '23 12:03 robloo

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.

TonyLugg avatar Mar 21 '23 12:03 TonyLugg

still need it 🙏

andrasjani avatar Jul 19 '23 12:07 andrasjani

Any progress on that ?

TFreudi1 avatar Aug 21 '23 11:08 TFreudi1

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

andrasjani avatar Aug 22 '23 09:08 andrasjani