Alpstein/route-me — Issue #34: Assertion failure after uncovering RMMapView
Author: plancalculus
Created: 2012-02-29 18:21:39+00:00
State: open

I have an application that presents a map view. First, I zoom in as far as possible. Then, I tap on a mark, which causes a new view controller to cover the map. I wait some seconds and dismiss the view controller again. After dismissing the view that covered the map, the map shows no tiles, that is, it is completely grey. But, more importantly, I get an assertion failure. More precisely, the method `URLForTile` in `RMMapQuestOSMSource` raises an exception because the current zoomLevel is 19 while it may only be 18 for the MapQuest source.

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: ' tried to retrieve tile with zoomLevel 19, outside source's defined range 1.000000 to 18.000000'

Can somebody explain me what is happing when the map view is covered?