Skip to content

geo.map.overlay

6 functions / 3 types

Index

FunctionDescription
addPathAdd a terrain-draped path. The returned UUID is independent of scene nodes.
getPathExecute the getPath statement.
removeExecute the remove statement.
removeAllRemove this map’s annotations without removing its layers or scene children.
setPathPointsExecute the setPathPoints statement.
setPathStyleExecute the setPathStyle statement.
TypeDescription
AnnotationIdA map-owned annotation’s stable UUID. An annotation is not a scene node.
PathInfo
PathStyle

addPath

addPath(args: { map: SceneNode; points?: Array<GeoGeoPosition>; straight?: boolean; style?: GeoMapOverlayPathStyle }, transactionId?: string): Promise<GeoMapOverlayAnnotationId>

Add a terrain-draped path. The returned UUID is independent of scene nodes.

Returns: A map-owned annotation’s stable UUID. An annotation is not a scene node.

Returns Promise<GeoMapOverlayAnnotationId>.

map : SceneNode

points optional : Array<GeoGeoPosition>

straight optional : boolean

style optional : GeoMapOverlayPathStyle

transactionId optional : string

getPath

getPath(args: { annotationId: GeoMapOverlayAnnotationId }, transactionId?: string): Promise<GeoMapOverlayPathInfo>

Execute the getPath statement.

Returns Promise<GeoMapOverlayPathInfo>.

transactionId optional : string

remove

remove(args: { annotationId: GeoMapOverlayAnnotationId }, transactionId?: string): Promise<void>

Execute the remove statement.

Returns Promise<void>.

transactionId optional : string

removeAll

removeAll(args: { map: SceneNode }, transactionId?: string): Promise<void>

Remove this map’s annotations without removing its layers or scene children.

Returns Promise<void>.

map : SceneNode

transactionId optional : string

setPathPoints

setPathPoints(args: { annotationId: GeoMapOverlayAnnotationId; points?: Array<GeoGeoPosition> }, transactionId?: string): Promise<void>

Execute the setPathPoints statement.

Returns Promise<void>.

points optional : Array<GeoGeoPosition>

transactionId optional : string

setPathStyle

setPathStyle(args: { annotationId: GeoMapOverlayAnnotationId; style: GeoMapOverlayPathStyle }, transactionId?: string): Promise<void>

Execute the setPathStyle statement.

Returns Promise<void>.

transactionId optional : string

AnnotationId

A map-owned annotation’s stable UUID. An annotation is not a scene node.

uuid : string

PathInfo

map : SceneNode

points optional : Array<GeoGeoPosition>

straight : boolean

PathStyle

closed : boolean

dotWidth : number

fillColor optional : ColorColorRgba

strokeColor : ColorColorRgba

strokeWidth : number