CachedTileOverlayRenderer
open class CachedTileOverlayRenderer : MKTileOverlayRenderer
A Tile overlay that supports to zoom beyond the maximumZ
Tile servers allow from 1 to a certain zoom level typically between 16 and 21 (set in MapCacheConfig.maximumZ
).
Beyond that zoom levels tiles are not available in the server
This renderer takes the maximumZ tile and extracts the portion that would correspond to the requested level.
-
Indicates if the renderer is ready to draw. It´s always true
See also
MKOverlayRendererDeclaration
Swift
public override func canDraw(_ mapRect: MKMapRect, zoomScale: MKZoomScale) -> Bool
-
Draws the tile in the map
Declaration
Swift
public override func draw(_ mapRect: MKMapRect, zoomScale: MKZoomScale, in context: CGContext)
Parameters
mapRect
the map rect where the tiles need to be drawn
zoomScale
current zoom in the map