Home > @magiclane/maps-sdk > MapSceneObject

MapSceneObject class

Maps scene object

Signature:

export declare class MapSceneObject 

Constructors

Constructor

Modifiers

Description

(constructor)(id, mapId)

Constructs a new instance of the MapSceneObject class

Properties

Property

Modifiers

Type

Description

coordinates

readonly

Coordinates

Object coordinates in main object coordinate system

mapId

readonly

number

maxScale

readonly

number

Max scale factor

orientation

readonly

Point4d

Object orientation

pointerId

readonly

number | bigint

scale

number

Object scale factor

visibility

boolean

Object visibility

Methods

Method

Modifiers

Description

customizeDefPositionTracker(buffer, format)

static

Customize default SDK position tracking object.

getDefPositionTracker()

static

Get default SDK position tracked object

getDefPositionTrackerAccuracyCircleColor()

static

Get SDK position tracking accuracy circle color

getScreenRect(mapController)

Gets the screen rectangle occupied by this object in the map view, or null if not available.

init(id, mapId)

static

resetDefPositionTrackerAccuracyCircleColor()

static

Reset the default SDK position tracked object to the default color

setDefPositionTrackerAccuracyCircleColor(color)

static

Set SDK position tracking accuracy circle color