Class YMKPolygonMapObject

Instance Methods

- resetAnimatedImage

Removes animated pattern.

- setAnimatedImageWithAnimatedImage:patternWidth:repeatMode:

Sets animated pattern with provided repeat mode to fill polygon.

- resetAnimatedImage

Removes animated pattern.

- setAnimatedImageWithAnimatedImage:patternWidth:repeatMode:

Sets animated pattern with provided repeat mode to fill polygon.

Properties

fillColor

Sets the fill color.

geodesic

The object geometry can be interpreted in two different ways: 1) If the object mode is 'geodesic', the object geometry is defined on a sphere.

geometry
strokeColor

Sets the stroke color.

strokeWidth

Sets the stroke width in units.

fillColor

Sets the fill color.

geodesic

The object geometry can be interpreted in two different ways: 1) If the object mode is 'geodesic', the object geometry is defined on a sphere.

geometry
strokeColor

Sets the stroke color.

strokeWidth

Sets the stroke width in units.

Method Detail

-resetAnimatedImage

- (void)resetAnimatedImage

Removes animated pattern.

-setAnimatedImageWithAnimatedImage:patternWidth:repeatMode:

- (void)setAnimatedImageWithAnimatedImage:(nullable id< YRTAnimatedImageProvider >)animatedImage
                             patternWidth:(float)patternWidth
                               repeatMode:(YMKPatternRepeatMode)repeatMode 

Sets animated pattern with provided repeat mode to fill polygon.

Pattern will be scaled to fit provided pattern width. Note that original linear sizes of pattern should be equal to power of 2.

Property Detail

fillColor

(assign, readwrite) UIColor * fillColor

Sets the fill color.

Default: hexademical RGBA code 0x0066FF99.

geodesic

(assign, readwrite, getter=isGeodesic) BOOL geodesic

The object geometry can be interpreted in two different ways: 1) If the object mode is 'geodesic', the object geometry is defined on a sphere.

2) Otherwise, the object geometry is defined in projected space. Default: false.

geometry

(assign, readwrite) YMKPolygon * geometry

strokeColor

(assign, readwrite) 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

(assign, 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.