MapPolygon

open class MapPolygon : MapObject<PolygonData>

A graphical representation of a MapPolygon that can be rendered on a map. A MapPolygon has multiple points that combine to create its area.

Functions

at
Link copied to clipboard
open fun at(@NonNull center: GeoCoordinates): PolygonData.Builder
open fun at(latitude: Double, longitude: Double): PolygonData.Builder
describeContents
Link copied to clipboard
abstract fun describeContents(): Int
open fun describeContents(): Int
equals
Link copied to clipboard
open fun equals(o: Any): Boolean
open fun equals(o: Any): Boolean
getData
Link copied to clipboard
open fun getData(): T
Get data associated with this viewObject.
getId
Link copied to clipboard
open fun getId(): Int
getMapObjectType
Link copied to clipboard
open fun getMapObjectType(): Int
Returns the type of map object
getObjectType
Link copied to clipboard
open fun getObjectType(): Int
Returns the type of view object.
getPosition
Link copied to clipboard
open fun getPosition(): GeoCoordinates
Returns the position of selected view object.
getZIndex
Link copied to clipboard
open fun getZIndex(): Int
hashCode
Link copied to clipboard
open fun hashCode(): Int
isValidParcelable
Link copied to clipboard
open fun isValidParcelable(): Boolean
If object after recreate from parcel contains all of reference like original object method return true.
of
Link copied to clipboard
open fun of(@NonNull center: GeoCoordinates, @NonNull vertices: List<GeoCoordinates>): PolygonData.Builder
setId
Link copied to clipboard
open fun setId(id: Int)
For internal use only.
setZIndex
Link copied to clipboard
open fun setZIndex(ZIndex: Int)
writeToParcel
Link copied to clipboard
abstract fun writeToParcel(p: Parcel, p1: Int)
open fun writeToParcel(dest: Parcel, flags: Int)
For documentation, see android.os.Parcelable.

Properties

CREATOR
Link copied to clipboard
val CREATOR: Parcelable.Creator<MapPolygon>