GLMapVectorImageTransform

Objective-C


@interface GLMapVectorImageTransform : NSObject

Swift

class GLMapVectorImageTransform : NSObject

GLMapVectorImageTransform used to customize vector image rendering process and hold together all rendering params.

  • Color cache key

    Declaration

    Objective-C

    @property (strong, readonly) NSString *_Nullable colorCacheKey;

    Swift

    var colorCacheKey: String? { get }
  • Color transform block

    Declaration

    Objective-C

    @property (strong, readonly) ColorTransformBlock _Nullable color;

    Swift

    var color: ColorTransformBlock? { get }
  • Rect cache key

    Declaration

    Objective-C

    @property (strong, readonly) NSString *_Nullable rectCacheKey;

    Swift

    var rectCacheKey: String? { get }
  • Rect transform block

    Declaration

    Objective-C

    @property (strong, readonly) RectTransformBlock _Nullable rect;

    Swift

    var rect: RectTransformBlock? { get }
  • Sets scale to use during render

    Declaration

    Objective-C

    - (void)setScale:(double)scale;

    Swift

    func setScale(_ scale: Double)

    Parameters

    scale

    scale

  • Sets expected size of image

    Declaration

    Objective-C

    - (void)setSize:(CGSize)size inCenter:(BOOL)inCenter;

    Swift

    func setSize(_ size: CGSize, inCenter: Bool)

    Parameters

    size

    target size

    inCenter

    when true,

  • Sets tint to use during render

    Declaration

    Objective-C

    - (void)setTint:(GLMapColor)tint;

    Swift

    func setTint(_ tint: GLMapColor)

    Parameters

    tint

    tint

  • Sets block to transform colors of an image

    Declaration

    Objective-C

    - (void)setColor:(nonnull ColorTransformBlock)color
        colorCacheKey:(nonnull NSString *)colorCacheKey;

    Swift

    func setColor(_ color: @escaping ColorTransformBlock, colorCacheKey: String)

    Parameters

    color

    block that modifies colors

    colorCacheKey

    name of that color in cache key

  • Sets rect transform block

    Declaration

    Objective-C

    - (void)setRect:(nonnull RectTransformBlock)rect
        rectCacheKey:(nonnull NSString *)rectCacheKey;

    Swift

    func setRect(_ rect: @escaping RectTransformBlock, rectCacheKey: String)

    Parameters

    rect

    block that modifies rect of the image

    rectCacheKey

    key for that image with updated rect