iOS 14.0 Regression - MKPolyline is not shown on top of a MKTileOverlay

iOS 14.0 MapKit stopped drawing MKPolyline for me when there is a custom MKTileOverlay below it. Everything works in MKMap without the MKTileOverlay, but as as soon as MKTileOverlay is added below everything (or everything is added on top of MKTileOverlay):

MKCircle draws alright
MKPolygon draws alright
MKAnnotiation draws alright

MKPolyline is not drawn

The issue affects anything that is based on MKPolylineRenderer.

Submitted to Apple as FB8751854.

Does anyone know any trick for how to solve it? I tried on iOS 14.0.1 - same problem.

Replies

Try removing the transparency or changing the alpha of the line color to 1.0. That seemed to be a work around for now, but it appears to be a bug for me too.

Try removing the transparency or changing the alpha of the line color to 1.0. That seemed to be a work around for now, but it appears to be a bug for me too.

Thank you for this suggestion @dmorneault, it certainly works! As I didn't want to lose the transparency in my polylines I moved to drawing lines myself in the subclass of a MKPolylineRenderer and providing this subclass as a renderer where I was using pure MKPolylineRenderer before.