Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapObject defines an object to be displayed on the map.

Hierarchy

  • MapObject

Index

Constructors

constructor

  • Create a new object.

    Returns MapObject

Properties

color

color: Color

The point or line color of the map object

fillColor

fillColor: Color

The optional fill color of the map object (in case a spatial area is provided)

label

label: string

The optional label of the map object

labelColor

labelColor: Color

The color of the label font

labelFontName

labelFontName: string

The name of the label font

labelFontSize

labelFontSize: float64

The size of the label font

labelPosition

labelPosition: Coordinate

The position of the optional label of the map object (in screen pixels and relative to the coordinate center of the spatial point, line or area)

lineWidth

lineWidth: float64

The line width for spatial lines or areas

objectId

objectId: string

The identifier of the map object

objectType

objectType: string

The type of map object

properties

properties: AMap<string>

A map of optional object properties. In case of a 'fov' mapobject, the following properties may be available : viewId,renderMode,pan,tilt,fov.

resourceId

resourceId: string

The identifier of the resource this map object belongs to

spatialArea

spatialArea: CoordinatePath

The spatial area

spatialLine

spatialLine: CoordinatePath

The spatial line

spatialPoint

spatialPoint: Coordinate

The spatial point

symbolName

symbolName: string

The optional symbol name (circle_filled, diamond_filled, square_filled, star_filled or triangle_filled)

symbolPath

symbolPath: CoordinatePath

The optional symbol path (if no symbol name is given)

symbolSize

symbolSize: float64

The optional symbol size in case a symbol name is given (in screen pixels)

Static TYPE

TYPE: string = "M"

The type of objects in this class

Static TYPE_FOOTPRINT

TYPE_FOOTPRINT: string = "footprint"

The type of footprint map objects

Static TYPE_FOV

TYPE_FOV: string = "fov"

The type of field-of-view map objects

Static TYPE_GLOBAL

TYPE_GLOBAL: string = "global"

The type of global map objects

Static TYPE_MEASUREMENT

TYPE_MEASUREMENT: string = "measurement"

The type of measurement map objects

Static TYPE_VECTOR

TYPE_VECTOR: string = "vector"

The type of vector map objects (points,lines,areas)

Methods

toString

  • toString(): string
  • Convert the object to a string.

    Returns string

    the string form of the object.