Alpstein/route-me — Issue #33: zoomfactor increases (incorect) after switching view/tab on retina and tiles display att scaled factor
Author: giko44
Created: 2012-02-24 12:55:08+00:00
State: open

Hi All,

issue:
after switching view/tab on retina phone the zoomfactor increases and tiles display att scaled factor

details:
I have a multi tab app that has a mapview on the first tab. and i did set the mapView.adjustTilesForRetinaDisplay = YES; and a default zoomlevel of 1. I put some debugging on RMMapTiledLayerView, drawRect

when the app loads the output all tiles load att zoomlevel 1 and the maps displays.
See the output of listing 1 for the loggin on drawRect
After that i click on the second tab and than i click back to the tab containing the map. (NOTE: i do not zoom, drag or touch the map).
the map reloads directly ( on the non-retina display it does not redraw) and the zoom level is incorrect
See the output of listing 2 for the loggin on drawRect

after this all tiles are displayed scaled by a factor half.

regards Gijs

********** listing 1: output att startup *************
2012-02-24 13:43:38.041 gwfm[1672:fb03] Map initialised. tileSource:, minZoom:1.000000, maxZoom:6.000000, zoom:6.000000 at {10.217285,47.554287}
2012-02-24 13:43:38.322 gwfm[1672:13603] Tile @ x:1, y:1, zoom:1, rect.size.width:128.000000
2012-02-24 13:43:38.324 gwfm[1672:11907] Tile @ x:0, y:1, zoom:1, rect.size.width:128.000000
2012-02-24 13:43:39.298 gwfm[1672:13603] Tile @ x:0, y:1, zoom:1, rect.size.width:128.000000
2012-02-24 13:43:39.567 gwfm[1672:11907] Tile @ x:1, y:0, zoom:1, rect.size.width:128.000000
2012-02-24 13:43:40.233 gwfm[1672:13603] Tile @ x:1, y:0, zoom:1, rect.size.width:128.000000
2012-02-24 13:43:40.322 gwfm[1672:13603] Tile @ x:0, y:0, zoom:1, rect.size.width:128.000000
2012-02-24 13:43:40.621 gwfm[1672:11907] Tile @ x:0, y:0, zoom:1, rect.size.width:128.000000

********** listing 2: output after switching tabs *************

2012-02-24 13:51:09.800 gwfm[1672:16b27] Tile @ x:2, y:3, zoom:3, rect.size.width:32.000000
2012-02-24 13:51:09.803 gwfm[1672:16a23] Tile @ x:2, y:2, zoom:3, rect.size.width:32.000000
2012-02-24 13:51:10.509 gwfm[1672:16a23] Tile @ x:2, y:2, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:10.622 gwfm[1672:16b27] Tile @ x:2, y:2, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:11.103 gwfm[1672:16a23] Tile @ x:2, y:3, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:11.343 gwfm[1672:16b27] Tile @ x:2, y:3, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:11.469 gwfm[1672:16b27] Tile @ x:3, y:2, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:11.772 gwfm[1672:16a23] Tile @ x:3, y:2, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:11.854 gwfm[1672:16a23] Tile @ x:1, y:2, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:12.160 gwfm[1672:16b27] Tile @ x:1, y:2, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:12.655 gwfm[1672:16a23] Tile @ x:2, y:1, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:12.902 gwfm[1672:16b27] Tile @ x:2, y:1, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:13.199 gwfm[1672:16a23] Tile @ x:3, y:3, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:13.672 gwfm[1672:16b27] Tile @ x:3, y:3, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:13.812 gwfm[1672:16a23] Tile @ x:1, y:3, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:13.954 gwfm[1672:16b27] Tile @ x:1, y:3, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:14.353 gwfm[1672:16a23] Tile @ x:3, y:1, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:14.464 gwfm[1672:16b27] Tile @ x:3, y:1, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:14.843 gwfm[1672:16a23] Tile @ x:1, y:1, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:15.028 gwfm[1672:16b27] Tile @ x:1, y:1, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:15.380 gwfm[1672:16a23] Tile @ x:2, y:0, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:15.893 gwfm[1672:16a23] Tile @ x:3, y:0, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:16.286 gwfm[1672:16b27] Tile @ x:3, y:0, zoom:2, rect.size.width:64.000000
2012-02-24 13:51:16.454 gwfm[1672:16a23] Tile @ x:1, y:0, zoom:2, rect.size.width:64.000000