<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MapView stays empty on latest .NET MAUI on Android in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1364489#M12396</link>
    <description>&lt;P&gt;With the newest ArcGIS Runtime 200.3 and .NET8/MAUI8 this issue is solved&lt;/P&gt;</description>
    <pubDate>Wed, 27 Dec 2023 15:06:48 GMT</pubDate>
    <dc:creator>SokoFromNZ</dc:creator>
    <dc:date>2023-12-27T15:06:48Z</dc:date>
    <item>
      <title>MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1284810#M11811</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This took me a day to figure out &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It seems with the latest version of your Runtime (&lt;EM&gt;&lt;FONT face="courier new,courier"&gt;&amp;lt;PackageReference Include="Esri.ArcGISRuntime.Maui" Version="200.1.0" /&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;) and the latest Visual Studio 2022 Version (Enterprise v17.5.5, &lt;SPAN&gt;.NET MAUI to 7.0.81 (SR4)&lt;/SPAN&gt;) maps are not shown anymore.&lt;/P&gt;&lt;P&gt;I've reproduced this on an emulator an two real world devices.&lt;/P&gt;&lt;P&gt;I've created a simple/default .NET MAUI app for your convenience (see zip attached).&lt;/P&gt;&lt;P&gt;The core issue is in the xaml:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt;
&amp;lt;ContentPage
    x:Class="ArcGISTry1.MainPage"
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    xmlns:esriUI="clr-namespace:Esri.ArcGISRuntime.Maui;assembly=Esri.ArcGISRuntime.Maui"&amp;gt;

    &amp;lt;!-- With "*, Auto" no map is displayed!
    Only this works, but is layout-wise not what I want: &amp;lt;Grid ColumnDefinitions="*, *" RowDefinitions="*, *"&amp;gt;
    --&amp;gt;
    &amp;lt;Grid ColumnDefinitions="*, Auto" RowDefinitions="*, Auto"&amp;gt;
        &amp;lt;esriUI:MapView
            x:Name="MyMapView"
            Grid.Row="0"
            Grid.RowSpan="2"
            Grid.Column="0"
            Grid.ColumnSpan="2" /&amp;gt;
        &amp;lt;Button
            Grid.Row="1"
            Grid.Column="1"
            Text="..." /&amp;gt;
    &amp;lt;/Grid&amp;gt;
&amp;lt;/ContentPage&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I put the MapView into a Grid with Auto-Columns/Rows the page stays empty:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nomap.png" style="width: 391px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69669i6FD503F739C00F1E/image-size/large?v=v2&amp;amp;px=999" role="button" title="nomap.png" alt="nomap.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I use just Star-Columns/Rows everything works fine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="map.png" style="width: 391px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/69671iD576A2E1B053433C/image-size/large?v=v2&amp;amp;px=999" role="button" title="map.png" alt="map.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Please investigate as I need this to work asap for a upcoming release&lt;/P&gt;</description>
      <pubDate>Tue, 02 May 2023 16:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1284810#M11811</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-05-02T16:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1284996#M11812</link>
      <description>&lt;P&gt;I've been able to reproduce this, and while I don't have a fix/explanation&amp;nbsp; right at this moment, I was able to get the behavior you're looking for with a slightly different layout:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    &amp;lt;Grid&amp;gt;
        &amp;lt;esriUI:MapView x:Name="MyMapView" /&amp;gt;
        &amp;lt;Grid ColumnDefinitions="*, Auto" RowDefinitions="*, Auto"&amp;gt;
            &amp;lt;Button Grid.Row="1" Grid.Column="1" Text="..." /&amp;gt;
        &amp;lt;/Grid&amp;gt;
    &amp;lt;/Grid&amp;gt;&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 May 2023 22:05:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1284996#M11812</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-05-02T22:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1285053#M11813</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Good to hear you can reproduce it. Is there an official way for me to report real bugs in the runtime? Or do you create a bug report to your developers about this issue now?&lt;/P&gt;&lt;P&gt;After creating this ticket I came up with the exact same workaround as you did &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyhow...I'm looking forward to an explanation for this. Please keep me up to date&amp;nbsp;&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;</description>
      <pubDate>Wed, 03 May 2023 06:32:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1285053#M11813</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-05-03T06:32:11Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1294329#M11869</link>
      <description>&lt;P&gt;Sorry for the slow follow-up. I've been spending some time debugging this, and I'm 99.9% sure this is a layout bug in .NET MAUI, and not in the ArcGIS Maps SDK. It's sending some weird layout parameters when you use the specific configuration you have above, causing the map to size itself to 0.&lt;BR /&gt;However I did find numerous other ways to get the layout you want without triggering this bug, so you should be able to move forward.&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 23:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1294329#M11869</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-05-30T23:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295021#M11880</link>
      <description>&lt;P&gt;I think you're right, Morten.&amp;nbsp; The bug disappears when building the reproducer with latest Visual Studio Preview.&amp;nbsp; There have been &lt;A href="https://github.com/dotnet/maui/pulls?q=label%3A%22area%2Flayout+%F0%9F%94%B2%22+is%3Aclosed+type%3Apr" target="_self"&gt;many layout bugs fixed&lt;/A&gt; in MAUI recently, perhaps this has already been taken care of by Microsoft.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_20230531_181251.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/72166i5E83B4D9F42C5D6C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_20230531_181251.jpg" alt="Screenshot_20230531_181251.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 16:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295021#M11880</guid>
      <dc:creator>MatveiStefarov</dc:creator>
      <dc:date>2023-06-01T16:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295270#M11881</link>
      <description>&lt;P&gt;Hi guys...and thanks for the effort.&lt;/P&gt;&lt;P&gt;So whats the plan here? I reckon to wait for the next VS version?&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/256344"&gt;@MatveiStefarov&lt;/a&gt;: which version exactly did you test? Was it a v17.6.3 or a 17.7.0?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Soko&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 06:38:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295270#M11881</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-06-02T06:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295539#M11884</link>
      <description>&lt;P&gt;&amp;gt;&amp;nbsp;&lt;SPAN&gt;So whats the plan here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Since this is a layout bug outside the Maps SDK, you have a few choices:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Work around it (as mentioned above it fixes itself quite easily by not relying on auto-sizing or rearranging layout layered instead of gridded.&lt;/LI&gt;&lt;LI&gt;Wait for .NET 8 to ship with the fix (and/or use the preview for now).&lt;/LI&gt;&lt;LI&gt;Push Microsoft to backport the fix to .NET 7.&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Fri, 02 Jun 2023 22:27:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295539#M11884</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-06-02T22:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295678#M11887</link>
      <description>&lt;P&gt;Heya,&lt;/P&gt;&lt;P&gt;I've ment actually _your_ plan &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've implemented the work around already so I have no urgend need for a fix here.&lt;/P&gt;&lt;P&gt;But you are certian MatveiStefavor tested with a .NET8 preview here?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 03:04:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1295678#M11887</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-06-05T03:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1296071#M11891</link>
      <description>&lt;P&gt;I trust the testing the team-members do. In addition it is backed up by numerous layout fixes in the .NET MAUI previews.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 22:44:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1296071#M11891</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2023-06-05T22:44:59Z</dc:date>
    </item>
    <item>
      <title>Re: MapView stays empty on latest .NET MAUI on Android</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1364489#M12396</link>
      <description>&lt;P&gt;With the newest ArcGIS Runtime 200.3 and .NET8/MAUI8 this issue is solved&lt;/P&gt;</description>
      <pubDate>Wed, 27 Dec 2023 15:06:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/mapview-stays-empty-on-latest-net-maui-on-android/m-p/1364489#M12396</guid>
      <dc:creator>SokoFromNZ</dc:creator>
      <dc:date>2023-12-27T15:06:48Z</dc:date>
    </item>
  </channel>
</rss>

