MMKPolygonMapObject

@interface MMKPolygonMapObject : MMKMapObject

A polygon displayed on the map.

Summary

Instance methods

- (void)setPatternWithAnimatedImage:
            (nonnull id<MRTAnimatedImageProvider>)animatedImage
                              scale:(float)scale;

Sets pattern to fill polygon

- (void)setPatternWithImage:(nonnull UIImage *)image scale:(float)scale;
Sets pattern to fill polygon

- (void)resetPattern;
Removes pattern

Properties

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKPolygon *geometry;

Undocumented

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    UIColor *strokeColor;

Sets the stroke color

@property (nonatomic, assign, unsafe_unretained, readwrite) float strokeWidth;
Sets the stroke width in units

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    UIColor *fillColor;

Sets the fill color

@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isGeodesic)
    BOOL geodesic;

The object geometry can be interpreted in two different ways: <ul><li>If the object mode is 'geodesic', the object geometry is defined on a sphere

Instance methods

setPatternWithAnimatedImage:scale:

- (void)setPatternWithAnimatedImage:
            (nonnull id<MRTAnimatedImageProvider>)animatedImage
                              scale:(float)scale;

Note

Original linear sizes of pattern should be equal to power of 2.

Sets pattern to fill polygon. @attention Fill color is ignored if a pattern is set.


setPatternWithImage:scale:

- (void)setPatternWithImage:(nonnull UIImage *)image scale:(float)scale;

Note

Original linear sizes of pattern should be equal to power of 2.

Sets pattern to fill polygon. @attention Fill color is ignored if pattern is set.


resetPattern

- (void)resetPattern;

Removes pattern.


Properties

geometry

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    MMKPolygon *geometry;

Undocumented


strokeColor

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    UIColor *strokeColor;

Sets the stroke color. Default: hexademical RGBA code 0x0066FFFF. Setting the stroke color to any transparent color (for example, RGBA code 0x00000000) effectively disables the stroke.


strokeWidth

@property (nonatomic, assign, unsafe_unretained, readwrite) float strokeWidth;

Sets the stroke width in units. Default: 5. The size of a unit is equal to the size of a pixel at the current zoom when the camera position's tilt is equal to 0 and the scale factor is equal to 1.


fillColor

@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull)
    UIColor *fillColor;

Note

Fill color is ignored if a pattern is set.

Sets the fill color. Default: hexademical RGBA code 0x0066FF99.


geodesic

@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isGeodesic)
    BOOL geodesic;

The object geometry can be interpreted in two different ways:

  • If the object mode is 'geodesic', the object geometry is defined on a sphere.
  • Otherwise, the object geometry is defined in projected space.
Default: false.