Skip to content

Zooming out entire world map - doesn't work on iphone, crashes on iPad #4

Description

@vividcode

I am trying to zoom out till the point when I can see entire world map.

When using with iPad (retina or non-retina), following line crashes:

[map setCenterCoordinate:CLLocationCoordinate2DMake(0, 0) zoomLevel:0 animated:0];

The crash log: (observed in simulator, all iOS versions)

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Invalid Region <center:+0.00000000, +0.00000000 span:+177.49461591, +624.37500000>'

This works without crash on any iphone, but entire world isn't visible anyhow.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions