v0.5.0
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
, andPath
out ofMapboxStaticMap
and into the module’s namespace. MovedImageFormat
out ofMapboxStaticMap
and renamed itSnapshotFormat
. If any of these class names conflict with a class in your application’s module, prefix it withMapboxStatic.
. (#18) - Renamed
MapboxStaticMap
toSnapshot
.Snapshot
’s initializer takes aSnapshotOptions
parameter that specifies the viewport and output format. (#19) - If no access token is passed into
Snapshot
’s initializer, it is read from theMGLMapboxAccessToken
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 itscenterCoordinate
andzoomLevel
. Null Island is no longer the default center coordinate. (#19) - Renamed
imageWithCompletionHandler(_:)
toimage(completionHandler:)
and added an optionalerror
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'