mapbox / DEPRECATED-mapbox-ios-sdk

REPLACED – use https://www.mapbox.com/ios-sdk instead
https://github.com/mapbox/mapbox-gl-native
Other
322 stars 8 forks source link

Unreadable map when zooming in/out on retina displays #627

Open entropid opened 9 years ago

entropid commented 9 years ago

When you zoom in/out on a retina display, the titles on the map become unreadable far before it switches to an upper zoom level for the tiles.

If initially the map appears like this: 1 2 3

After zooming in and out a bit they become like this: 4 5 6

Which translates into a poor user experience, since zooming in again does not help and the titles are still tiny and impossible to read.

Svantulden commented 9 years ago

You can force the map view to upscale the 256px tiles to double, by using the mapView.adjustTilesForRetinaDisplay = YES property. From the documentation:

If set to YES, the map tiles are drawn at double size, typically 512 pixels square instead of 256 pixels, in order to compensate for smaller features and to make them more legible. If tiles designed for retina devices are used, this value should be set to NO in order to display these tiles at the proper size. The default value is NO.

entropid commented 9 years ago

The tiles would then be presented in the wrong size before the bug occurs.