MMKPolygonMapObject
class MMKPolygonMapObject : MMKMapObject |
A polygon displayed on the map.
Summary
Instance methods
func setPatternWithAnimatedImage( animatedImage: MRTAnimatedImageProvider_, |
func setPatternWith(_ image: UIImage, scale: Float) |
func resetPattern() |
Properties
var geometry: MMKPolygon { get set } |
var strokeColor: UIColor { get set } |
var strokeWidth: Float { get set } |
var fillColor: UIColor { get set } |
var isGeodesic: Bool { get set } |
Instance methods
setPatternWithAnimatedImage(_:scale:)
func setPatternWithAnimatedImage( animatedImage: MRTAnimatedImageProvider_, |
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: MMKPolygon { 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.