mapbox / MapboxStatic.swift

Static map snapshots with overlays in Swift or Objective-C on iOS, macOS, tvOS, and watchOS
https://www.mapbox.com/api-documentation/?language=Swift#static
Other
189 stars 31 forks source link

Fix assertion failure on 3× devices #27

Closed 1ec5 closed 8 years ago

1ec5 commented 8 years ago

An assertion that the size doesn’t exceed the allowable limits accounted for the scale but not for the fact that the scale is actually capped at 2× before sending the request. This change adjusts the assertion to allow 3× screens to load images as large as are allowed on 2× screens.