GLMapVectorImageTransform

Objective-C


@interface GLMapVectorImageTransform : NSObject

Swift

class GLMapVectorImageTransform : NSObject

GLMapVectorImageTransform is used to customize the vector image rendering process and hold all rendering parameters together.

  • 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 the scale to use during rendering.

    Declaration

    Objective-C

    - (void)setScale:(double)scale;

    Swift

    func setScale(_ scale: Double)

    Parameters

    scale

    The scale factor.

  • Sets the expected size of the image.

    Declaration

    Objective-C

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

    Swift

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

    Parameters

    size

    The target size.

    inCenter

    When ‘YES’, the image is placed in the center of the canvas.

  • Sets the tint to use during rendering.

    Declaration

    Objective-C

    - (void)setTint:(GLMapColor)tint;

    Swift

    func setTint(_ tint: GLMapColor)

    Parameters

    tint

    The tint color.

  • Sets the 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

    The block that modifies colors.

    colorCacheKey

    The name of the color in the cache key.

  • Sets the 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

    The block that modifies the rect of the image.

    rectCacheKey

    The key for the image with the updated rect.