Skip to content

v0.6.0

Compare
Choose a tag to compare
@1ec5 1ec5 released this 16 May 21:52
· 144 commits to master since this release

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'