Skip to content

geo.map.overlay

6 functions / 3 types

Index

FunctionDescription
add_pathAdd a terrain-draped path. The returned UUID is independent of scene nodes.
get_pathExecute the get_path statement.
removeExecute the remove statement.
remove_allRemove this map’s annotations without removing its layers or scene children.
set_path_pointsExecute the set_path_points statement.
set_path_styleExecute the set_path_style statement.
TypeDescription
AnnotationIdA map-owned annotation’s stable UUID. An annotation is not a scene node.
PathInfoPathInfo
PathStylePathStyle

add_path

def add_path(
    *,
    map: types.scene.Node,
    points: list[types.geo.GeoPosition] | None = None,
    style: types.geo.map.overlay.PathStyle | None = None,
    straight: bool | None = None,
    _transaction_id: str | None = None
) -> types.geo.map.overlay.AnnotationId

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

Returns AnnotationId.

map : Node

points optional : list[GeoPosition] | None

Defaults to None.

style optional : PathStyle | None

Defaults to None.

straight optional : bool | None

Defaults to None.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

get_path

def get_path(
    *,
    annotation_id: types.geo.map.overlay.AnnotationId,
    _transaction_id: str | None = None
) -> types.geo.map.overlay.PathInfo

Execute the get_path statement.

Returns PathInfo.

annotation_id : AnnotationId

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

remove

def remove(
    *,
    annotation_id: types.geo.map.overlay.AnnotationId,
    _transaction_id: str | None = None
) -> None

Execute the remove statement.

Returns None.

annotation_id : AnnotationId

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

remove_all

def remove_all(*, map: types.scene.Node, _transaction_id: str | None = None) -> None

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

Returns None.

map : Node

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

set_path_points

def set_path_points(
    *,
    annotation_id: types.geo.map.overlay.AnnotationId,
    points: list[types.geo.GeoPosition] | None = None,
    _transaction_id: str | None = None
) -> None

Execute the set_path_points statement.

Returns None.

annotation_id : AnnotationId

points optional : list[GeoPosition] | None

Defaults to None.

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

set_path_style

def set_path_style(
    *,
    annotation_id: types.geo.map.overlay.AnnotationId,
    style: types.geo.map.overlay.PathStyle,
    _transaction_id: str | None = None
) -> None

Execute the set_path_style statement.

Returns None.

annotation_id : AnnotationId

style : PathStyle

_transaction_id optional : str | None

Transaction to join. Omit to submit without an explicit transaction. Defaults to None.

AnnotationId

AnnotationId(*, uuid: str)

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

uuid : str

PathInfo

PathInfo(
    *,
    annotation_id: types.geo.map.overlay.AnnotationId,
    map: types.scene.Node,
    points: tuple[types.geo.GeoPosition, ...] = (),
    style: types.geo.map.overlay.PathStyle,
    straight: bool
)

PathInfo

annotation_id : AnnotationId

map : Node

points optional : tuple[GeoPosition, ...]

Defaults to ().

style : PathStyle

straight : bool

PathStyle

PathStyle(
    *,
    stroke_color: types.color.ColorRgba,
    stroke_width: float,
    dot_width: float,
    closed: bool,
    fill_color: types.color.ColorRgba | None = None
)

PathStyle

stroke_color : ColorRgba

stroke_width : float

dot_width : float

closed : bool

fill_color optional : ColorRgba | None

Defaults to None.