OmhPolyline

interface OmhPolyline

OmhPolyline is an interface that provides an abstraction for a polyline on a map. A polyline is a series of connected line segments that can form any shape you want on a map. You can customize the appearance of the polyline by changing its properties.

Functions

Link copied to clipboard
abstract fun getCap(): OmhCap?

Gets the cap of the polyline.

Link copied to clipboard
abstract fun getClickable(): Boolean

Checks if the polyline is clickable.

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

Gets the color of the polyline.

Link copied to clipboard
abstract fun getEndCap(): OmhCap?

Gets the end cap of the polyline.

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

Gets the joint type of the polyline.

Link copied to clipboard
abstract fun getPattern(): List<OmhPatternItem>?

Gets the pattern of the polyline.

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

Gets the points that make up the polyline.

Link copied to clipboard
abstract fun getSpans(): List<OmhStyleSpan>?

Gets the spans of the polyline.

Link copied to clipboard
abstract fun getStartCap(): OmhCap?

Gets the start cap of the polyline.

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

Retrieves the tag associated with the polyline.

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

Gets the width in pixels of the polyline.

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

Gets the z-index of the polyline.

Link copied to clipboard
abstract fun isVisible(): Boolean

Gets the visibility of the polyline.

Link copied to clipboard
abstract fun remove()

Removes polyline from the map

Link copied to clipboard
abstract fun setCap(cap: OmhCap)

Sets the cap of the polyline for both ends.

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

Sets the clickable state of the polyline.

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

Sets the color of the polyline.

Link copied to clipboard
abstract fun setEndCap(endCap: OmhCap)

Sets the end cap of the polyline.

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

Sets the joint type of the polyline.

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

Sets the pattern of the polyline.

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

Sets the points that make up the polyline.

Link copied to clipboard
abstract fun setSpans(spans: List<OmhStyleSpan>)

Sets the spans of the polyline.

Link copied to clipboard
abstract fun setStartCap(startCap: OmhCap)

Sets the start cap of the polyline.

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

Sets the tag associated with the polyline.

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

Sets the visibility of the polyline.

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

Sets the width in pixels of the polyline.

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

Sets the z-index of the polyline.