Skip to content

v0.5.0

Compare
Choose a tag to compare
@1ec5 1ec5 released this 12 May 19:14
· 182 commits to master since this release

Changes since v0.4.0:

  • This library is now distributed as a dynamic framework instead of a standalone source code file. (#16)
  • Added support for Cocoa applications on OS X. (#21)
  • Moved MarkerSize, Overlay, Marker, CustomMarker, GeoJSON, and Path out of MapboxStaticMap and into the module’s namespace. Moved ImageFormat out of MapboxStaticMap and renamed it SnapshotFormat. If any of these class names conflict with a class in your application’s module, prefix it with MapboxStatic.. (#18)
  • Renamed MapboxStaticMap to Snapshot. Snapshot’s initializer takes a SnapshotOptions parameter that specifies the viewport and output format. (#19)
  • If no access token is passed into Snapshot’s initializer, it is read from the MGLMapboxAccessToken key in the main bundle’s Info.plist. (#19)
  • A snapshot’s scale defaults to the screen’s resolution. (#19)
  • Removed the autoFitFeatures option. To have to snapshot automatically fit any overlays, omit its centerCoordinate and zoomLevel. Null Island is no longer the default center coordinate. (#19)
  • Renamed imageWithCompletionHandler(_:) to image(completionHandler:) and added an optional error parameter to the completion handler. (#19)
  • Upgraded to Swift 3–compatible syntax. (#14)

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

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