I have an standard Open Street Map Overlay implemented. It works perfect on the Simulator and when I set explicitly canReplaceMapContent to YES on the overlay. If I set it to NO, it will not display on any iOS 14 device. iOS 13 devices were able to display it.
I develop the app in Objective C, the overlay was working for many iOS releases before.
Standard MKTileOverlay, standard URL tile.openstreetmap.org:
Standard MKTileOverlayRenderer:
Having to set canReplaceMapContent to YES on the tile overlay leads to some flickering, which would be easy to avoid setting it to NO, but setting NO leads to only grey tiles, resp. no tiles drawn at all.
Any ideas?
I develop the app in Objective C, the overlay was working for many iOS releases before.
Standard MKTileOverlay, standard URL tile.openstreetmap.org:
Code Block _tileOverlay = [[MKTileOverlay alloc] initWithURLTemplate:@"https://<OSM URL>/{z}/{x}/{y}.png"]; _tileOverlay.canReplaceMapContent = NO; [_mapView addOverlay:_tileOverlay level:MKOverlayLevelAboveLabels];
Standard MKTileOverlayRenderer:
Code Block - (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id<MKOverlay>)overlay { if ([overlay isKindOfClass:[MKTileOverlay class]]) { return [[MKTileOverlayRenderer alloc] initWithOverlay:overlay]; }
Having to set canReplaceMapContent to YES on the tile overlay leads to some flickering, which would be easy to avoid setting it to NO, but setting NO leads to only grey tiles, resp. no tiles drawn at all.
Any ideas?