MapUnit

open class MapUnit

This class contains data that can be used to position markers on a map.

Constructors

Link copied to clipboard
constructor()
Constructor.
constructor(id: String)
Constructor.
constructor(id: String, name: String)
Constructor.

Functions

Link copied to clipboard
open fun addCoordinate(latLng: LatLng)
Adds an individual coordinate to the list of coordinates that make up the touchable area of the map unit's polygon.
Link copied to clipboard
open fun addWayfindingNode(waypoint: Waypoint)
Adds a waypoint to the list of wayfinding nodes that are associated with the map unit.
Link copied to clipboard
open fun hasHotspot(): Boolean
Checks to see if the map unit contains a hotspot location.
Link copied to clipboard
open fun hasIcon(): Boolean
Checks to see if the map unit has an icon that can be used.
Link copied to clipboard
open fun hasLabel(): Boolean
Checks to see if the map unit contains data that can be used to generate a label.
Link copied to clipboard
open fun isEmpty(): Boolean
Checks to see if the map unit contains an ID.
Link copied to clipboard

Properties

Link copied to clipboard
open var category: String
Link copied to clipboard
Calculated when coordinates is set
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open var icon: String
Link copied to clipboard
Link copied to clipboard
open var id: String
Link copied to clipboard
Link copied to clipboard
open var name: String
Link copied to clipboard
open var placeId: String
Link copied to clipboard
open var type: MapUnitType
Link copied to clipboard