maui icon indicating copy to clipboard operation
maui copied to clipboard

Tabbed pages with mapsui map do not work on Android but do on windows

Open raymondjstone opened this issue 2 years ago • 2 comments
trafficstars

Description

Maui/Blazor app, tabbed pages (2), page 1 has the map (mapsui) on it (and also a maui control), page 2 has a maui control only.

Tab1 shows initially and is correct and shows the map along with the various layers I add to it. when switching to tab2 that page then shows correctly.

Switching back to tab1 however the page shows but only the maui controls, the map itself is missing and calling refreshGraphics in the NavigateTo method does not help

running in windows this works fine, running on android device it does not (both emulator and physical machine).

map control is in an absolute layout object within the page

Steps to Reproduce

Switching between tabbed pages on Android does not return the original content on a tab with a mapsui map added to it but does work on windows.

Link to public reproduction project repository

not available at the moment

Version with bug

7.0 (current)

Last version that worked well

Unknown/Other

Affected platforms

Android

Affected platform versions

Android 12

Did you find any workaround?

No

I tried to use the navigatedTo handler to refresh the map and to replace the enitire contents of the page but that does not work

Relevant log output

no errors shown, just a blank screen where the map should be (but other maui controls overlayed over it do show)

raymondjstone avatar Feb 27 '23 09:02 raymondjstone

Hi @raymondjstone. We have added the "s/needs-repro" label to this issue, which indicates that we require steps and sample code to reproduce the issue before we can take further action. Please try to create a minimal sample project/solution or code samples which reproduce the issue, ideally as a GitHub repo that we can clone. See more details about creating repros here: https://github.com/dotnet/maui/blob/main/.github/repro.md

This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.

ghost avatar Feb 27 '23 15:02 ghost

Hi @raymondjstone can you also show screenshots of what you're seeing and point out what it is that you expect?

Eilon avatar Feb 28 '23 23:02 Eilon

This issue has been automatically marked as stale because it has been marked as requiring author feedback to reproduce the issue but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.

ghost avatar Mar 06 '23 00:03 ghost