Skip to content

Releases: mapbox/MapboxStatic.swift

v0.12.0

18 Dec 23:03
Compare
Choose a tag to compare

Changes since v0.11.0:

  • Increased the minimum deployment targets to iOS 10.0, macOS 10.12.0, tvOS 10.0, and watchOS 3.0. (#109)
  • Upgraded to Polyline v5.0. (#109)

v0.11.0

18 Dec 19:11
Compare
Choose a tag to compare

Changes since v0.10.0:

  • This library can now be installed using Swift Package Manager. (#96)
  • Renamed ClassicSnapshotOptions(mapIdentifiers:size:) to ClassicSnapshotOptions(tileSetIdentifiers:size:) and ClassicSnapshotOptions(mapIdentifiers:zoomLevel:size:) to ClassicSnapshotOptions(tileSetIdentifiers:zoomLevel:size:). (#100)
  • Migrated to Swift 5. (#101)

v0.10.0

22 Nov 00:11
172af20
Compare
Choose a tag to compare

Changes since v0.9.1:

  • This library now depends on the Polyline framework. (#53)
  • Upgraded to Swift 4. (#75)
  • Added support for watchOS on the fourth-generation Apple Watch. (#82)

v0.9.1

06 Jul 04:14
Compare
Choose a tag to compare

Changes since v0.9.0:

  • Fixed a crash that could occur if another module extends UIColor with a toHexString() method. (#66)

v0.9.0

30 May 23:43
Compare
Choose a tag to compare

Changes since v0.8.0:

  • Removed the strokeOpacity and fillOpacity properties from Path in favor of the alpha components of the strokeColor and fillColor properties, respectively. (#61)
  • Fixed a linker error in Objective-C projects about “incompatible Objective-C category definitions”. (#60)
  • Fixed an issue causing Path overlays without fills to become closed polygons. (#58)

v0.8.0

03 Apr 23:02
Compare
Choose a tag to compare

This release upgrades the library to the Mapbox Static API, which is powered by Mapbox GL. Snapshot modern styles, rotated and tilted, with all the same overlay options as before (#54). Changes since v0.7.0:

  • SnapshotOptions’ initializers have been replaced with new initializers that accept a style URL and SnapshotCamera. (SnapshotCamera is similar to MGLMapCamera in the Mapbox iOS and macOS SDKs, except that you can specify either a zoom level or an altitude for convenience.)
  • ClassicSnapshotOptions connects to the classic Static API, retaining the functionality of the former SnapshotOptions.
  • Overlay options have remained relatively unchanged, although markers now support a wider selection of icon names in conjunction with SnapshotOptions, and you can choose to insert overlays below labels, roads, or other parts of the map.
  • SnapshotOptions adds a Mapbox logo and copyright notices by default.
  • GeoJSON(object:) is once again throwable.
  • Fixed warnings building with Swift 3.1. (#55)

v0.7.0

22 Feb 16:54
Compare
Choose a tag to compare

Changes since v0.6.2:

  • Migrated to Swift 3.0. If your application is written in Swift 2.3, you should stick to v0.6.x or use the swift2.3 branch. (#50)
  • Fixed an issue causing the error “The sandbox is not in sync with the Podfile.lock” when updating a Carthage-based project that requires this framework. (#51)

v0.6.2

10 Nov 19:48
Compare
Choose a tag to compare

Changes since v0.6.1:

  • Migrated to Swift 2.3.
  • Fixed an error that occurred when archiving an application that links to this library. (#38)
  • The user agent string sent by the Mac version of this library now says “macOS” instead of “OS X”. (#36)
  • More reliably parse server responses. (#40)
  • Clarified documentation. (#39)

To install this release via CocoaPods, point your Podfile to:

pod 'MapboxStatic.swift', :git => 'https://github.com/mapbox/MapboxStatic.swift.git', :tag => 'v0.6.2'

v0.6.1

06 Jun 22:28
Compare
Choose a tag to compare

Changes since v0.6.0:

  • When the request fails due to rate limiting, an invalid access token, or other invalid input, the completion handler’s error parameter contains an NSError object with an explanation of the reason for the failure and a recovery suggestion. (#32, #34)
  • Renamed Snapshot.requestURL to simply URL. (#31)
  • Requests sent through this library now use a more specific user agent string, so you can more easily identify this library on your Statistics page in Mapbox Studio. (#33)
  • Fixed a crash when requesting images between 640 and 1,280 points tall or wide on Retina displays.

To install this release via CocoaPods, point your Podfile to:

pod 'MapboxStatic.swift', :git => 'https://github.com/mapbox/MapboxStatic.swift.git', :tag => 'v0.6.1'

v0.6.0

16 May 21:52
Compare
Choose a tag to compare

Changes since v0.5.0:

  • Added support for bridging to Objective-C code. All classes now inherit from NSObject and have prefixed Objective-C class names. (#28)
  • Even if you aren’t using CocoaPods, you can now install the framework into tvOS and watchOS projects in addition to iOS and OS X projects. (#25)
  • Fixed a compiler error that affected watchOS projects that installed this library via CocoaPods. (#25)
  • A new MarkerOptions class conforms to a common SnapshotOptionsProtocol and inherits from MarkerImage like Marker does. MarkerOptions is responsible for configuring a request for a standalone marker from the classic Static API. (#30)
  • Renamed the mapIdentifier parameter of SnapshotOptions’ initializers to reflect the fact that you can composite multiple tile sets together by specifying multiple map identifiers. (#22)
  • Added Markdown documentation throughout the library. (#23, #24)
  • Overlay is now a protocol. (#23)
  • Marker and CustomMarker share a Point protocol. (#23)
  • Renamed MarkerSize to Size and placed it under Marker. (#23)
  • Renamed SnapshotFormat to simply Format and placed it under SnapshotOptions.
  • Added multiple convenience initializers to Marker that replace the label parameter with more specific parameters. (#23, #28)
  • Renamed GeoJSON(string:) to GeoJSON(objectString:) and added a GeoJSON(object:) that takes structured data. (#23)
  • Fixed an issue in which strings containing ? or ) passed into Path’s initializer would truncate the request URL, potentially causing the image request to fail. (#26)
  • Fixed an incorrect assertion failure creating large snapshots on devices with 3× screens. (#27)
  • Removed colors from overlay initializers in order to support multiple operating systems in Objective-C. Also removed other parameters from Path’s initializer since they make less sense without color parameters. (#28)
  • Added members to Path that refer to coordinates with raw pointers instead of arrays to enable bridging to Objective-C with C arrays. (#28)

To install this release via CocoaPods, point your Podfile to:

pod 'MapboxStatic.swift', :git => 'https://github.com/mapbox/MapboxStatic.swift.git', :tag => 'v0.6.0'