2

I have a problem when display tiles from openstreetmap through MKTileOverlay ; in retina display, text and labels are half size ( wrong scale ) and the map is unreadable. I have tried to change tilesize , but with a different value the map is not correctly displayed ( i see nothing with 512, while tile overlaps with 128 )

enter image description here

How can i fix this problem ?

Amar
  • 13,202
  • 7
  • 53
  • 71
atrebbi
  • 553
  • 3
  • 20

1 Answers1

1

Raster map tiles need to be designed specifically for retina displays to avoid this. I'd recommend something like Mapbox, whose API automatically takes care of this.

Otherwise, you'll have to implement your own custom MKTileOverlayRenderer and draw each 256px tile into a 512px CGContext. The tiles will appear blurry, though.

incanus
  • 5,100
  • 1
  • 13
  • 20