Class YMKPolygonMapObject

A polygon displayed on the map.

Instance Methods

- resetAnimatedImage

Removes animated pattern.

- setAnimatedImageWithAnimatedImage:patternWidth:

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

A runtime::RuntimeError exception is thrown if a latitude of at least one point in the geometry is out of bounds [-89.3; 89.3].

strokeColor

Sets the stroke color.

strokeWidth

Sets the stroke width in units.

Method Detail

-resetAnimatedImage

- (void)resetAnimatedImage

Removes animated pattern.

-setAnimatedImageWithAnimatedImage:patternWidth:

- (void)setAnimatedImageWithAnimatedImage:(nonnull id< YRTAnimatedImageProvider >)animatedImage
                             patternWidth:(float)patternWidth 

Sets animated pattern with provided repeat mode to fill polygon.

Pattern will be scaled to fit provided pattern width. Note: original linear sizes of pattern should be equal to power of 2. Note: fill color is ignored if an animated image is set.

Property Detail

fillColor

(assign, readwrite) UIColor * fillColor

Sets the fill color.

Default: hexademical RGBA code 0x0066FF99. Note: fill color is ignored if an animated image is set.

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

A runtime::RuntimeError exception is thrown if a latitude of at least one point in the geometry is out of bounds [-89.3; 89.3].

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.