Releases: mapbox/MapboxStatic.swift
Releases · mapbox/MapboxStatic.swift
v0.12.0
v0.11.0
- This library can now be installed using Swift Package Manager. (#96)
- Renamed
ClassicSnapshotOptions(mapIdentifiers:size:)
toClassicSnapshotOptions(tileSetIdentifiers:size:)
andClassicSnapshotOptions(mapIdentifiers:zoomLevel:size:)
toClassicSnapshotOptions(tileSetIdentifiers:zoomLevel:size:)
. (#100) - Migrated to Swift 5. (#101)
v0.10.0
v0.9.1
v0.9.0
Changes since v0.8.0:
- Removed the
strokeOpacity
andfillOpacity
properties from Path in favor of the alpha components of thestrokeColor
andfillColor
properties, respectively. (#61) - Fixed a linker error in Objective-C projects about “incompatible Objective-C category definitions”. (#60)
- Fixed an issue causing Path overlays without fills to become closed polygons. (#58)
v0.8.0
This release upgrades the library to the Mapbox Static API, which is powered by Mapbox GL. Snapshot modern styles, rotated and tilted, with all the same overlay options as before (#54). Changes since v0.7.0:
- SnapshotOptions’ initializers have been replaced with new initializers that accept a style URL and SnapshotCamera. (SnapshotCamera is similar to MGLMapCamera in the Mapbox iOS and macOS SDKs, except that you can specify either a zoom level or an altitude for convenience.)
- ClassicSnapshotOptions connects to the classic Static API, retaining the functionality of the former SnapshotOptions.
- Overlay options have remained relatively unchanged, although markers now support a wider selection of icon names in conjunction with SnapshotOptions, and you can choose to insert overlays below labels, roads, or other parts of the map.
- SnapshotOptions adds a Mapbox logo and copyright notices by default.
GeoJSON(object:)
is once again throwable.- Fixed warnings building with Swift 3.1. (#55)
v0.7.0
Changes since v0.6.2:
v0.6.2
Changes since v0.6.1:
- Migrated to Swift 2.3.
- Fixed an error that occurred when archiving an application that links to this library. (#38)
- The user agent string sent by the Mac version of this library now says “macOS” instead of “OS X”. (#36)
- More reliably parse server responses. (#40)
- Clarified documentation. (#39)
To install this release via CocoaPods, point your Podfile to:
pod 'MapboxStatic.swift', :git => 'https://github.com/mapbox/MapboxStatic.swift.git', :tag => 'v0.6.2'
v0.6.1
Changes since v0.6.0:
- When the request fails due to rate limiting, an invalid access token, or other invalid input, the completion handler’s
error
parameter contains an NSError object with an explanation of the reason for the failure and a recovery suggestion. (#32, #34) - Renamed
Snapshot.requestURL
to simplyURL
. (#31) - Requests sent through this library now use a more specific user agent string, so you can more easily identify this library on your Statistics page in Mapbox Studio. (#33)
- Fixed a crash when requesting images between 640 and 1,280 points tall or wide on Retina displays.
To install this release via CocoaPods, point your Podfile to:
pod 'MapboxStatic.swift', :git => 'https://github.com/mapbox/MapboxStatic.swift.git', :tag => 'v0.6.1'
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'