Skip to content

Releases: mapbox/MapboxStatic.swift

v0.5.0

12 May 19:14
Compare
Choose a tag to compare

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'

0.4.0

07 Oct 23:49
Compare
Choose a tag to compare
update screenshots for run through with Swift 2.0 code

0.3.0

18 Oct 07:54
Compare
Choose a tag to compare
add custom marker to auto-fit example

0.2.0

18 Oct 07:01
Compare
Choose a tag to compare
more attribution info

0.1.0

18 Oct 05:28
Compare
Choose a tag to compare
initial import