Skip to content

Commit 546504b

Browse files
committedFeb 18, 2019
Fix #69
Fixed by inserting tileServerOverlay always at index 0, such that it will always be lower than any other overlays such as the polyline
1 parent 6a009a6 commit 546504b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎OpenGpxTracker/GPXMapView.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ class GPXMapView: MKMapView {
103103
self.tileServerOverlay = CachedTileOverlay(urlTemplate: newValue.templateUrl)
104104
(self.tileServerOverlay as! CachedTileOverlay).useCache = self.useCache
105105
tileServerOverlay.canReplaceMapContent = true
106-
self.addOverlay(tileServerOverlay, level: .aboveLabels)
107-
106+
self.insertOverlay(tileServerOverlay, at: 0, level: .aboveLabels)
108107
}
109108
}
110109
}

0 commit comments

Comments
 (0)
Failed to load comments.