<?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: Map becomes white when coming back clicking on Windows app top left back button in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144258#M1648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We'll try and reproduce, but what happens if you turn locationdisplay off when leaving the page, and back on when coming back? Does that work around the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(btw good-looking app!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Feb 2018 17:07:04 GMT</pubDate>
    <dc:creator>dotMorten_esri</dc:creator>
    <dc:date>2018-02-09T17:07:04Z</dc:date>
    <item>
      <title>Map becomes white when coming back clicking on Windows app top left back button</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144257#M1647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This app is Xamarin app developed using, Prism with DryIoc, and Syncfusion. This bug is in Windows version of the app (haven't tested on Android and iOS)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once app opens, it loads with the map and loads the map points, then once map point is clicked, it opens a small pop up with some buttons. By clicking on one of the buttons it takes you to a new page. The issue happens when you coming back to the map and it is RANDOM (not always)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After days of investigating, I&amp;nbsp;think that it is something related to the device's location. Once device's Location is turned off, it works fine. So I think it is related to two events,&amp;nbsp;OnDrawStatusChanged and&amp;nbsp;OnLocationChanged.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the location changes, it fires&amp;nbsp;OnLocationChanged event and that cause to redraw the map (fires &lt;SPAN&gt;OnDrawStatusChanged event)&lt;/SPAN&gt;. Even you are sitting in the same location your location can be changed slightly. You can see the blue dot is slightly moving, every time blue dot moves it fires&amp;nbsp;&lt;SPAN&gt;OnLocationChanged and then it fires&amp;nbsp;OnDrawStatusChanged. When you coming back to map from using Windows App's back button also it calls&amp;nbsp;OnDrawStatusChanged event. So if both these scenarios happened same time map becomes white. It is something like you coming back to the Map while it is being redrawn&amp;nbsp;by location change event and it never gets to the Draw Status to Completed. Once device's location is turned off, it never fires&amp;nbsp;OnLocationChanged event and map never gets white.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This video shows how it becomes white, wait until&amp;nbsp;it gets to end.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&lt;A href="https://1drv.ms/v/s!AjXE2HD7_LUvmSKL6iiZkG9O6CD-"&gt;https://1drv.ms/v/s!AjXE2HD7_LUvmSKL6iiZkG9O6CD-&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;I checked the project, but couldn't find any .net code which caused to redraw the map, it is mainly because of a slight location change.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Using ArcGIS Runtime SDK for .NET 100.2.0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Any&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;&amp;nbsp;clue or idea to solve this out?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;Thanks a lot,&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 03:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144257#M1647</guid>
      <dc:creator>ErandaRanasinghe</dc:creator>
      <dc:date>2018-02-09T03:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Map becomes white when coming back clicking on Windows app top left back button</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144258#M1648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We'll try and reproduce, but what happens if you turn locationdisplay off when leaving the page, and back on when coming back? Does that work around the issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(btw good-looking app!)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Feb 2018 17:07:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144258#M1648</guid>
      <dc:creator>dotMorten_esri</dc:creator>
      <dc:date>2018-02-09T17:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Map becomes white when coming back clicking on Windows app top left back button</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144259#M1649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank @Morten for your reply. I tried what you suggested, but now it gets the white screen much quicker than earlier ( just a couple of back and forths.) I disable LocationDisplay&amp;nbsp;in&amp;nbsp;&amp;nbsp;OnNavigatedFrom and tried re-enabling it in both OnNavigatedTo and OnDrawStatusChanged event (if the status is Completed and if LocationDisplay is disabled).&amp;nbsp;But it doesn't solve the issue. I noted it fires OnLocationChanged event twice as soon as I enabled LocationDisplay. (not sure why)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess if I click on the +WO button while map view's status is In Progress and come back to the map, it tries to make the status-completed and at the same time&amp;nbsp;&lt;SPAN&gt;OnLocationChanged event calls&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;OnDrawStatusChanged event and try to redraw the map.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;(thanks, but having a real pain with this issue now)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Feb 2018 01:37:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/map-becomes-white-when-coming-back-clicking-on/m-p/144259#M1649</guid>
      <dc:creator>ErandaRanasinghe</dc:creator>
      <dc:date>2018-02-12T01:37:11Z</dc:date>
    </item>
  </channel>
</rss>

