2cm

app crashes when user location out of webmapview

Discussion created by 2cm on Jun 22, 2012
I have a webview loaded in a mapview.
When starting the gps (  [self.mapView.gps start]; )

The app crashes with this message:

Terminating app due to uncaught exception 'CALayerInvalidGeometry', reason: 'CALayer position contains NaN: [nan nan]'

Apparently this happens when the GPS signal is outside the view port of the map view.

How can I fix this?

Outcomes