MMKPolygonMapObject
@interface MMKPolygonMapObject : MMKMapObject |
A polygon displayed on the map.
Summary
Instance methods
- (void)setPatternWithAnimatedImage: |
- (void)setPatternWithImage:(nonnull UIImage *)image scale:(float)scale; |
- (void)resetPattern; |
Properties
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) |
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) |
@property (nonatomic, assign, unsafe_unretained, readwrite) float strokeWidth; |
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) |
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isGeodesic) |
Instance methods
setPatternWithAnimatedImage:scale:
- (void)setPatternWithAnimatedImage: |
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) |
Undocumented
strokeColor
@property (nonatomic, assign, unsafe_unretained, readwrite, nonnull) |
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) |
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) |
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.