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

Pass through error message #34

Closed 1ec5 closed 8 years ago

1ec5 commented 8 years ago

Even after #32, API errors (as opposed to HTTP errors) would be dropped on the floor, leading to no image and no error. This change adopts what MapboxGeocoder.swift and MapboxDirections.swift do, additionally using the absence of a decodable image as an indicator of an error.