AnsweredAssumed Answered

Map becomes white when coming back clicking on Windows app top left back button

Question asked by tcceran on Feb 8, 2018
Latest reply on Feb 11, 2018 by tcceran

Hi,

 

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) 

 

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)

 

After days of investigating, I 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, OnDrawStatusChanged and OnLocationChanged. 

 

Once the location changes, it fires OnLocationChanged event and that cause to redraw the map (fires OnDrawStatusChanged event). 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 OnLocationChanged and then it fires OnDrawStatusChanged. When you coming back to map from using Windows App's back button also it calls 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 by location change event and it never gets to the Draw Status to Completed. Once device's location is turned off, it never fires OnLocationChanged event and map never gets white.

 

This video shows how it becomes white, wait until it gets to end.

https://1drv.ms/v/s!AjXE2HD7_LUvmSKL6iiZkG9O6CD-

 

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.

 

Using ArcGIS Runtime SDK for .NET 100.2.0

 

Any clue or idea to solve this out?

 

Thanks a lot,

Outcomes