geo.map.overlay
6 functions / 3 types
Index
| Function | Description |
|---|---|
| addPath | Add a terrain-draped path. The returned UUID is independent of scene nodes. |
| getPath | Execute the getPath statement. |
| remove | Execute the remove statement. |
| removeAll | Remove this map’s annotations without removing its layers or scene children. |
| setPathPoints | Execute the setPathPoints statement. |
| setPathStyle | Execute the setPathStyle statement. |
| Type | Description |
|---|---|
| AnnotationId | A 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>.
annotationId : GeoMapOverlayAnnotationId
transactionId optional : string
remove
remove(args: { annotationId: GeoMapOverlayAnnotationId }, transactionId?: string): Promise<void>Execute the remove statement.
Returns Promise<void>.
annotationId : GeoMapOverlayAnnotationId
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>.
annotationId : GeoMapOverlayAnnotationId
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>.
annotationId : GeoMapOverlayAnnotationId
style : GeoMapOverlayPathStyle
transactionId optional : string
AnnotationId
A map-owned annotation’s stable UUID. An annotation is not a scene node.
uuid : string
PathInfo
annotationId : GeoMapOverlayAnnotationId
map : SceneNode
points optional : Array<GeoGeoPosition>
straight : boolean
style : GeoMapOverlayPathStyle
PathStyle
closed : boolean
dotWidth : number
fillColor optional : ColorColorRgba
strokeColor : ColorColorRgba
strokeWidth : number