OmhPolygon

interface OmhPolygon

OmhPolygon is an interface that provides an abstraction for a polygon on a map. A polygon is a shape with multiple edges on a map. You can customize the appearance of the polygon by changing its properties.

Functions

Link copied to clipboard
abstract fun getClickable(): Boolean

Checks if the polygon is clickable.

Link copied to clipboard
abstract fun getFillColor(): Int?

Gets the color of the polygon.

Link copied to clipboard
abstract fun getHoles(): List<List<OmhCoordinate>>?

Gets the holes in the polygon.

Link copied to clipboard
abstract fun getOutline(): List<OmhCoordinate>?

Gets the points that make up the polygon.

Link copied to clipboard
abstract fun getStrokeColor(): Int?

Gets the color of the polygon's stroke.

Link copied to clipboard
abstract fun getStrokeJointType(): Int?

Gets the joint type of the polygon's stroke.

Link copied to clipboard

Gets the pattern of the polygon's stroke.

Link copied to clipboard
abstract fun getStrokeWidth(): Float?

Gets the width in pixels of the polygon's stroke.

Link copied to clipboard
abstract fun getTag(): Any?

Get the tag associated with the polygon.

Link copied to clipboard
abstract fun getZIndex(): Float?

Gets the z-index of the polygon.

Link copied to clipboard
abstract fun isVisible(): Boolean

Gets the visibility of the polygon.

Link copied to clipboard
abstract fun remove()

Removes polygon from the map

Link copied to clipboard
abstract fun setClickable(clickable: Boolean)

Sets the clickable state of the polygon.

Link copied to clipboard
abstract fun setFillColor(color: Int)

Sets the fill color of the polygon.

Link copied to clipboard
abstract fun setHoles(omhCoordinates: List<List<OmhCoordinate>>)

Sets the holes in the polygon.

Link copied to clipboard
abstract fun setOutline(omhCoordinates: List<OmhCoordinate>)

Sets the points that make up the polygon.

Link copied to clipboard
abstract fun setStrokeColor(color: Int)

Sets the color of the polygon's stroke.

Link copied to clipboard
abstract fun setStrokeJointType(jointType: Int)

Sets the joint type of the polygon's stroke.

Link copied to clipboard
abstract fun setStrokePattern(pattern: List<OmhPatternItem>)

Sets the pattern of the polygon's stroke.

Link copied to clipboard
abstract fun setStrokeWidth(width: Float)

Sets the width in pixels of the polygon's stroke.

Link copied to clipboard
abstract fun setTag(tag: Any)

Sets the tag associated with the polygon.

Link copied to clipboard
abstract fun setVisible(visible: Boolean)

Sets the visibility of the polygon.

Link copied to clipboard
abstract fun setZIndex(zIndex: Float)

Sets the z-index of the polygon.