v0.6.0
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 commonSnapshotOptionsProtocol
and inherits fromMarkerImage
likeMarker
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
andCustomMarker
share aPoint
protocol. (#23)- Renamed
MarkerSize
toSize
and placed it underMarker
. (#23) - Renamed
SnapshotFormat
to simplyFormat
and placed it underSnapshotOptions
. - Added multiple convenience initializers to
Marker
that replace thelabel
parameter with more specific parameters. (#23, #28) - Renamed
GeoJSON(string:)
toGeoJSON(objectString:)
and added aGeoJSON(object:)
that takes structured data. (#23) - Fixed an issue in which strings containing
?
or)
passed intoPath
’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'