Map is being stuck after no internet connection.

422
1
02-12-2018 02:35 PM
NikolayYekimov
New Contributor II

Attaching two screenshots with greyed out area. I turned off internet connection for a while, zoomed map until I get grey area with no data. Then I turned on internet connection, my expectation is that map will reload automatically, it didn't happen. I zoomed map and the area is still there, what should I do to force map reloading in the case? 

0 Kudos
1 Reply
DavidLednik
Occasional Contributor II

Hi Nikolay Yekimov,

Thank you for bringing this to our attention.

There is a simple fix for this,

Rebinding the map will force the refresh of tiles:

if let poi = self.mapView.currentViewpoint(with: .centerAndScale) {

   self.mapView.map = nil

   self.mapView.map = self.map

   self.mapView.setViewpoint(poi)

} else {

   self.mapView.map = nil

   self.mapView.map = self.map

}

0 Kudos