diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2017-10-05 14:19:07 +0300 |
---|---|---|
committer | Fabian Guerra Soto <fabian.guerra@mapbox.com> | 2017-11-01 09:23:53 -0400 |
commit | e9568ccda78bc076b2923b7645c885b78971202a (patch) | |
tree | 49188c7a9b8c4d417e7842f43a184764d3c2bb38 /platform/darwin/src/MGLMapSnapshotter.h | |
parent | fd3587608b950df86809606819e89fbe71139ac3 (diff) | |
download | qtlocation-mapboxgl-e9568ccda78bc076b2923b7645c885b78971202a.tar.gz |
[darwin] map snapshotter - snapshotter mutability
Diffstat (limited to 'platform/darwin/src/MGLMapSnapshotter.h')
-rw-r--r-- | platform/darwin/src/MGLMapSnapshotter.h | 40 |
1 files changed, 39 insertions, 1 deletions
diff --git a/platform/darwin/src/MGLMapSnapshotter.h b/platform/darwin/src/MGLMapSnapshotter.h index e227f3e306..896dc04c9d 100644 --- a/platform/darwin/src/MGLMapSnapshotter.h +++ b/platform/darwin/src/MGLMapSnapshotter.h @@ -46,7 +46,7 @@ MGL_EXPORT @property (nonatomic) MGLMapCamera *camera; /** - The cooordinate rectangle that encompasses the bounds to capture. + The coordinate rectangle that encompasses the bounds to capture. If this property is non-empty and the camera property is non-nil, the camera’s center coordinate and altitude are ignored in favor of this property’s value. @@ -140,6 +140,44 @@ MGL_EXPORT - (void)cancel; /** + The zoom level. + + The default zoom level is 0. This overwrites the camera zoom level if set. + */ +@property (nonatomic) double zoomLevel; + +/** + A camera representing the viewport visible in the snapshot. + + If this property is non-nil and the `coordinateBounds` property is set to a non-empty + coordinate bounds, the camera’s center coordinate and altitude are ignored in favor + of the `coordinateBounds` property. + */ +@property (nonatomic) MGLMapCamera *camera; + +/** + The coordinate rectangle that encompasses the bounds to capture. + + If this property is non-empty and the camera property is non-nil, the camera’s + center coordinate and altitude are ignored in favor of this property’s value. + */ +@property (nonatomic) MGLCoordinateBounds coordinateBounds; + +/** + URL of the map style to snapshot. + + The URL may be a full HTTP or HTTPS URL, a Mapbox URL indicating the style’s + map ID (`mapbox://styles/{user}/{style`}), or a path to a local file relative + to the application’s resource path. Specify `nil` for the default style. + */ +@property (nonatomic) NSURL* styleURL; + +/** + The size of the output image, measured in points. + */ +@property (nonatomic) CGSize size; + +/** Indicates whether as snapshot is currently being generated. */ @property (nonatomic, readonly, getter=isLoading) BOOL loading; |