<?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 .Net Xamarin - Map Shows Blank in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199491#M2318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in the process of building a mobile app and within it I have a map plugin that is utilizing Esri.ArcGISRuntime.Xamarin.Android nuget package (version 100). I have created a C# class which implements a LinearLayout and on Initialize, I construct my Esri.ArcGISRuntime.UI.Controls.MapView and call AddView(_myMapView) followed up with a load layer method that constructs a map consuming a Streets basemap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything compiles and the layout appears in my app and I see the Powered by ESRI logo; however, nothing displays. The map appears black and no other code fires if I drag or pinch my finger over the control. I did wire up the LoadStatusChanged event for my map and I do achieve a loaded status, again nothing is visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Jun 2017 17:01:58 GMT</pubDate>
    <dc:creator>JimFiddes</dc:creator>
    <dc:date>2017-06-13T17:01:58Z</dc:date>
    <item>
      <title>.Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199491#M2318</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Everyone&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm in the process of building a mobile app and within it I have a map plugin that is utilizing Esri.ArcGISRuntime.Xamarin.Android nuget package (version 100). I have created a C# class which implements a LinearLayout and on Initialize, I construct my Esri.ArcGISRuntime.UI.Controls.MapView and call AddView(_myMapView) followed up with a load layer method that constructs a map consuming a Streets basemap.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything compiles and the layout appears in my app and I see the Powered by ESRI logo; however, nothing displays. The map appears black and no other code fires if I drag or pinch my finger over the control. I did wire up the LoadStatusChanged event for my map and I do achieve a loaded status, again nothing is visible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 17:01:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199491#M2318</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-13T17:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin Forms - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199492#M2319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you share some code that shows how you are setting up the map?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 22:09:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199492#M2319</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-06-13T22:09:15Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin Forms - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199493#M2320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is condensed code from my class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;public class MapControlView : LinearLayout&lt;BR /&gt; {&lt;BR /&gt;&amp;nbsp; private readonly MapView _myMapView = new MapView();&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; #region Implementors&lt;BR /&gt;&amp;nbsp; public MapControlView(IntPtr javaReference, JniHandleOwnership transfer) : base(javaReference, transfer)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Initialize();&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; public MapControlView(Context context) : base(context)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Initialize();&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; public MapControlView(Context context, IAttributeSet attrs) : base(context, attrs)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Initialize();&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; public MapControlView(Context context, IAttributeSet attrs, int defStyleAttr) : base(context, attrs, defStyleAttr)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Initialize();&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; public MapControlView(Context context, IAttributeSet attrs, int defStyleAttr, int defStyleRes) : base(context, attrs, defStyleAttr, defStyleRes)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Initialize();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; #endregion&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; private void Initialize()&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; _myMapView.NavigationCompleted += MyMapView_OnNavigationCompleted;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; AddView(_myMapView);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; LoadLayers();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp; private void LoadLayers()&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; var mdsMap = new Map(Basemap.CreateImagery());&lt;BR /&gt;&amp;nbsp; &amp;nbsp; mdsMap.LoadStatusChanged += MdsMap_LoadStatusChanged; &lt;BR /&gt;&amp;nbsp; &amp;nbsp; _myMapView.Map = mdsMap;&lt;BR /&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&amp;nbsp; private void MdsMap_LoadStatusChanged(object sender, global::Esri.ArcGISRuntime.LoadStatusEventArgs e)&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; if (_mapReadyForUse) return;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; if (e.Status.Equals(LoadStatus.Loaded))&lt;BR /&gt;&amp;nbsp; &amp;nbsp; {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; _uiContext.Post(x =&amp;gt;{(sender as Map).LoadStatusChanged -= MdsMap_LoadStatusChanged;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; _mapReadyForUse = true;&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; MapReady?.Invoke();&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; }, null);&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;&amp;nbsp; } &lt;BR /&gt; }//end of class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 13:42:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199493#M2320</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-14T13:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199494#M2321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any input on why my map appears blank but still shows Powered by ESRI?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:27:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199494#M2321</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-19T15:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199495#M2322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The two parts are two separate parts to the MapView control. The "Powered by ESRI" text is rendered by the Android Label classes, whereas the map itself is rendered directly by OpenGL and won't start doing rendering until the map is properly loaded.&lt;/P&gt;&lt;P&gt;So it indicates the mapview control is there and loaded, but there's no map it can render, or issues with generating the OpenGL context.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is the MapView.DrawStatusChanged ever fired?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jun 2017 15:50:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199495#M2322</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-06-19T15:50:14Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199496#M2323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes the MapView.DrawStatusChanged event fires as well as the Map.LoadStatusChanged event fires. No exceptions or warnings appear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 15:31:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199496#M2323</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-20T15:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199497#M2324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And what are the draw statuses of the layers that are being reported?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 15:46:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199497#M2324</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-06-20T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199498#M2325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/357879_RuntimeMsg.png" style="width: 620px; height: 215px;" /&gt;&lt;/P&gt;&lt;P&gt;From what I can see, the map gets a status of loaded in the end and the basemap appears to load without issue. The only thing I do see is that the draw status of the map view is always in progress and never gets to completed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 15:53:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199498#M2325</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-20T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199499#M2326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does this map/mapview work outside your custom LinearLayout?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 15:54:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199499#M2326</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2017-06-20T15:54:36Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199500#M2327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/357880_RuntimeResolution.PNG" style="width: 620px; height: 201px;" /&gt;&lt;/P&gt;&lt;P&gt;So....it appears the issue of the map view never getting a completed status in the DrawStatusChanged event was due to my Post method. In our .net code for windows we Post to another thread to say the map is ready and in the Xamarin Android side, this is not required. By commenting out the post method, my MapReady event is then triggered within the View containing this linear layout which then in turns allows the map view to complete its drawing event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread can now be closed but it is good to know that a MapControlView can be managed within a class that implements a linear layout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:04:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199500#M2327</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-20T16:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: .Net Xamarin - Map Shows Blank</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199501#M2328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for posting ideas on what to check, it was of great help in finding out I created my own troubles.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jun 2017 16:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/net-xamarin-map-shows-blank/m-p/199501#M2328</guid>
      <dc:creator>JimFiddes</dc:creator>
      <dc:date>2017-06-20T16:05:03Z</dc:date>
    </item>
  </channel>
</rss>

