geo.map.overlay
6 functions / 3 types
Index
| Function | Description |
|---|---|
| add_path | Add a terrain-draped path. The returned UUID is independent of scene nodes. |
| get_path | Execute the get_path statement. |
| remove | Execute the remove statement. |
| remove_all | Remove this map’s annotations without removing its layers or scene children. |
| set_path_points | Execute the set_path_points statement. |
| set_path_style | Execute the set_path_style statement. |
| Type | Description |
|---|---|
| AnnotationId | A map-owned annotation’s stable UUID. An annotation is not a scene node. |
| PathInfo | PathInfo |
| PathStyle | PathStyle |
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.AnnotationIdAdd 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.PathInfoExecute 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
) -> NoneExecute 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) -> NoneRemove 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
) -> NoneExecute 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
) -> NoneExecute 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