YMKPolygonMapObject

class YMKPolygonMapObject : YMKMapObject

A polygon displayed on the map.

Summary

Instance methods

func setPatternWithAnimatedImage( animatedImage: YRTAnimatedImageProvider_,
                                           scale: Float)
Sets pattern to fill polygon

func setPatternWith(_ image: UIImage, scale: Float)
Sets pattern to fill polygon

func resetPattern()
Removes pattern

Properties

var geometryYMKPolygon { get set }
Undocumented

var strokeColor: UIColor { get set }
Sets the stroke color

var strokeWidth: Float { get set }
Sets the stroke width in units

var fillColor: UIColor { get set }
Sets the fill color

var isGeodesic: Bool { get set }
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:)

func setPatternWithAnimatedImage( animatedImage: YRTAnimatedImageProvider_,
                                           scale: Float)

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.


setPatternWith(_:scale:)

func setPatternWith(_ image: UIImage, scale: Float)

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()

func resetPattern()

Removes pattern.


Properties

geometry

var geometry: YMKPolygon { get set }

Undocumented


strokeColor

var strokeColor: UIColor { get set }

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

var strokeWidth: Float { get set }

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

var fillColor: UIColor { get set }

Note

Fill color is ignored if a pattern is set.

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


isGeodesic

var isGeodesic: Bool { get set }

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.