I am going through a strange problem.I am working on a Xamarin.Forms App where I am displaying offline(downloaded MAps).
Everything is working correctly till internet is on at my device.Maps are displaying properly(I have checked data is coming from physical .TPK file).
But when internet connectivity is off maps are coming as blank,Nothing is rendering in mapview.
I have debugged my code and checked it data in both the cases are same.
So i believe something is going wrong in esri MApView control.
Here is the XAML I am using to display Maps:
Can anybody help me to get rid of this issue?
Thanks in the advance...
This problem was happening for both BaseMaps(.TPK) and as well as Maps(.geodatabase).
Now i have updated sdk to 100.0.0.
This problem is no more for BaseMaps(.TPK) but it's persist with Maps(.geodatabase)
Are you certain the layers are getting added to the map. The offline layers may have a different name, so if you are using a text string the load the layer, rather than iterating around all feature layers in the offline geodatabase, this may be your issue.
You could also just open the geodatabase to confirm that records are present. If your extent or something was hosed, maybe you have an empty geodatabase.
Could you share the code you're using to add the data to the map? I've got a similar scenario with a mobile map package containing vector data and feature data and it all loads without issues offline. Is your data in a mobile map package?
If you are loading the data directly from the geodatabase when online or offline, then there should be no difference. I've not had any issues loading data from the geodatabase.
If you can share code or a sample geodatabase, that would help.