TTStaticImageQueryBuilder
Objective-C
@interface TTStaticImageQueryBuilder : NSObject
Swift
class TTStaticImageQueryBuilder : NSObject
TTStaticImageQueryBuilder
-
Layer style. If layer parameter is set to hybrid or labels - format parameter has to be set to png. This is due to alpha-layer requirement for serving labels and hybrid layers. User will receive HTTP 400 if in such case other format was selected.
Declaration
Objective-C
@property (nonatomic, readonly) TTLayerType layer;Swift
var layer: TTLayerType { get } -
Map style to be returned.
Declaration
Objective-C
@property (nonatomic, readonly) NSString *style;Swift
var style: String! { get } -
Desired zoom level of the map.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger zoomLevel;Swift
var zoomLevel: Int { get } -
Width of the resulting image, in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger width;Swift
var width: Int { get } -
Height of the resulting image, in pixels.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger height;Swift
var height: Int { get } -
Geopolitical view
Declaration
Objective-C
@property (nonatomic, readonly) NSString *view;Swift
var view: String! { get } -
Center point coordinates.
Declaration
Objective-C
@property (nonatomic, readonly) CLLocationCoordinate2D center;Swift
var center: CLLocationCoordinate2D { get } -
Bounding box.
Declaration
Objective-C
@property (nonatomic, readonly) int boundingBox;Swift
var boundingBox: Int32 { get } -
Create query with Bounding box
Declaration
Objective-C
+ (TTStaticImageQueryBuilder *_Nonnull)withBoundingBox:(id)boundingBox;Swift
class func withBoundingBox(_ boundingBox: Any!) -> TTStaticImageQueryBuilderParameters
boundingBoxBounding box.
Return Value
TTStaticImageQueryBuilder
-
Create query with Center point coordinates
Declaration
Objective-C
+ (TTStaticImageQueryBuilder *_Nonnull)withCenter: (CLLocationCoordinate2D)center;Swift
class func withCenter(_ center: CLLocationCoordinate2D) -> TTStaticImageQueryBuilderParameters
centerCenter point coordinates
Return Value
TTStaticImageQueryBuilder
-
Create query with Layer style
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withLayer:(TTLayerType)layer;Swift
func withLayer(_ layer: TTLayerType) -> TTStaticImageQueryBuilderParameters
layerLayer style
Return Value
TTStaticImageQueryBuilder
-
Create query with Map style.
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withStyle:(TTStyleType)style;Swift
func withStyle(_ style: TTStyleType) -> TTStaticImageQueryBuilderParameters
styleMap style
Return Value
TTStaticImageQueryBuilder
-
Styles define colour scheme. Method allow provide custom style name
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withCustomStyle: (NSString *_Nonnull)customStyle;Swift
func withCustomStyle(_ customStyle: String) -> TTStaticImageQueryBuilderParameters
customStylecustom style
Return Value
TTStaticImageQueryBuilder
-
Create query with zoom level of the map
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withZoomLevel:(NSInteger)zoomLevel;Swift
func withZoomLevel(_ zoomLevel: Int) -> TTStaticImageQueryBuilderParameters
zoomLevelDesired zoom level of the map
Return Value
TTStaticImageQueryBuilder
-
Create query with Width of the resulting image, in pixels
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withWidth:(NSUInteger)width;Swift
func withWidth(_ width: UInt) -> TTStaticImageQueryBuilderParameters
widthWidth of the resulting image, in pixels
Return Value
TTStaticImageQueryBuilder
-
Create query with Height of the resulting image, in pixels
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withHeight:(NSUInteger)height;Swift
func withHeight(_ height: UInt) -> TTStaticImageQueryBuilderParameters
heightHeight of the resulting image, in pixels
Return Value
TTStaticImageQueryBuilder
-
Create query with Geopolitical view
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withView:(NSString *_Nonnull)view;Swift
func withView(_ view: String) -> TTStaticImageQueryBuilderParameters
viewGeopolitical view
Return Value
TTStaticImageQueryBuilder
-
Build
Declaration
Objective-C
- (TTStaticImageQuery *_Nonnull)build;Swift
func build() -> TTStaticImageQueryReturn Value
TTStaticImageQuery
TTStaticImageQueryBuilder Class Reference