Home > @magiclane/maps-sdk > FollowPositionPreferences

FollowPositionPreferences class

Follow position preferences class

Signature:

export declare class FollowPositionPreferences extends GemAutoreleaseObject 

Extends: GemAutoreleaseObject

Properties

Property

Modifiers

Type

Description

accuracyCircleVisibility

readonly

boolean

Check if accuracy circle is visible.

cameraFocus

readonly

Point

Get the follow position camera focus in viewport coordinates

isTrackObjectFollowingMapRotation

readonly

boolean

Check if position tracking object rotation follows map rotation.

mapId

readonly

number

perspective

readonly

MapViewPerspective

Get the map view perspective in follow position mode.

pointerId

readonly

number | bigint

timeBeforeTurnPresentation

number

Get the time interval before starting a turn presentation.

touchHandlerExitAllow

boolean

Check whether manually exiting follow position via touch handler events is enabled.

touchHandlerModifyDistanceLimits

Pair<number, number>

Get touch handler distance to object adjust limits.

touchHandlerModifyHorizontalAngleLimits

Pair<number, number>

Get touch handler horizontal angle adjust limits.

touchHandlerModifyPersistent

boolean

Test whether manually adjusted follow position changes are persistent.

touchHandlerModifyVerticalAngleLimits

readonly

Pair<number, number>

Get touch handler vertical angle adjust limits.

viewAngle

readonly

number

Get the vertical angle.

zoomLevel

readonly

number

Get a zoom level in follow position mode.

Methods

Method

Modifiers

Description

dispose()

init(id, mapId)

static

setAccuracyCircleVisibility(isVisible)

Set accuracy circle visibility.

setCameraFocus(pos)

Set the follow position camera focus in viewport coordinates

setMapRotationMode(mode, angle, objectFollowMap)

Set map rotation mode in follow position.

setPerspective(perspective, animation)

Set the map view perspective in follow position mode.

setTouchHandlerModifyVerticalAngleLimits(angles)

Set touch handler vertical angle adjust limits.

setViewAngle(viewAngle, animated)

Set vertical angle in follow position mode.

setZoomLevel(zoomLevel, duration)

Set a zoom level in follow position mode.