TTStaticImageQueryBuilder
@interface 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 (readonly, nonatomic) TTLayerType layer;
Swift
var layer: TTLayerType { get }
-
Map style to be returned.
Declaration
Objective-C
@property (readonly, nonatomic) NSString *style;
Swift
var style: String! { get }
-
Desired zoom level of the map.
Declaration
Objective-C
@property (readonly, nonatomic) NSInteger zoomLevel;
Swift
var zoomLevel: Int { get }
-
Width of the resulting image, in pixels.
Declaration
Objective-C
@property (readonly, nonatomic) NSInteger width;
Swift
var width: Int { get }
-
Height of the resulting image, in pixels.
Declaration
Objective-C
@property (readonly, nonatomic) NSInteger height;
Swift
var height: Int { get }
-
Geopolitical view
Declaration
Objective-C
@property (readonly, nonatomic) NSString *view;
Swift
var view: String! { get }
-
@deprecated This variable is deprecated.
Declaration
Objective-C
@property (readonly, nonatomic) TTProtocolType protocol;
Swift
var `protocol`: TTProtocolType { get }
-
Center point coordinates.
Declaration
Objective-C
@property (readonly, nonatomic) CLLocationCoordinate2D center;
Swift
var center: CLLocationCoordinate2D { get }
-
Bounding box.
Declaration
Objective-C
@property (readonly, nonatomic) 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!) -> TTStaticImageQueryBuilder
Parameters
boundingBox
Bounding box.
Return Value
TTStaticImageQueryBuilder
-
Create query with Center point coordinates
Declaration
Objective-C
+ (TTStaticImageQueryBuilder *_Nonnull)withCenter: (CLLocationCoordinate2D)center;
Swift
class func withCenter(_ center: CLLocationCoordinate2D) -> TTStaticImageQueryBuilder
Parameters
center
Center point coordinates
Return Value
TTStaticImageQueryBuilder
-
Create query with Layer style
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withLayer:(TTLayerType)layer;
Swift
func withLayer(_ layer: TTLayerType) -> TTStaticImageQueryBuilder
Parameters
layer
Layer style
Return Value
TTStaticImageQueryBuilder
-
Create query with Map style.
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withStyle:(TTStyleType)style;
Swift
func withStyle(_ style: TTStyleType) -> TTStaticImageQueryBuilder
Parameters
style
Map 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) -> TTStaticImageQueryBuilder
Parameters
customStyle
custom 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) -> TTStaticImageQueryBuilder
Parameters
zoomLevel
Desired 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) -> TTStaticImageQueryBuilder
Parameters
width
Width 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) -> TTStaticImageQueryBuilder
Parameters
height
Height 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) -> TTStaticImageQueryBuilder
Parameters
view
Geopolitical view
Return Value
TTStaticImageQueryBuilder
-
@deprecated This method is deprecated.
Declaration
Objective-C
- (TTStaticImageQueryBuilder *_Nonnull)withProtocol:(TTProtocolType)protocol;
Swift
func withProtocol(_ protocol: TTProtocolType) -> TTStaticImageQueryBuilder
-
Build
Declaration
Objective-C
- (TTStaticImageQuery *_Nonnull)build;
Swift
func build() -> TTStaticImageQuery
Return Value
TTStaticImageQuery