-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retina tiles are not used as they are with the native renderer #44
Comments
Hi, One question, did you update the ///
/// Tile size of the tile. Default is 256x256
///
public var tileSize: CGSize = CGSize(width: 256, height: 256)
|
Hi, yes, I set it (see complete example below). If I do not set it, the tiles overlap each other (-> each tile gets drawn beginning at 0,0 coords, overflowing the 256x256 rect and overlapping the neighbouring tiles). Btw, I set var config = MapCacheConfig(withUrlTemplate:"https://{s}.tiles.openrailwaymap.org/standard/{z}/{x}/{y}.png")
config.maximumZ = 19;
config.cacheName = "standard";
config.tileSize = CGSize(width: 512, height: 512)
config.overZoomMaximumZ = false;
let mapCache = MapCache(withConfig: config)
mapView.useCache(mapCache) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I tried to integrate this library in my project. It uses OpenRailwayMap tiles, which are 512x512 retina png tiles (e.g. https://a.tiles.openrailwaymap.org/standard/8/137/85.png). If I use the native MKTileOverlay (first example) it uses the full available resolution on a retina display, resulting in a sharp image with more details. If I use the MapCache overlay (second example), the tiles are blurry and have way less details. I assume something in the zoom height configuration on retina displays is wrong here, but I couldn't figure out what exactly.
Maybe @merlos you can take a look what could be the problem here?
If it helps, I can provide the code I used to achieve both outcomes.
Thanks!
The text was updated successfully, but these errors were encountered: