Skip to content

geo.map.debug

2 functions / 3 types

Index

FunctionDescription
GetDebugViewsReturn the map’s debug views.
SetDebugViewsChange the map’s debug views and return all of them. Each field left out keeps its value. The settings outlive the map and apply to the next map spawned. Terrain shadows are set with geo.viewport.set_rendering.
TypeDescription
GetDebugViewsReturn the map’s debug views.
MapDebugStateThe map’s debug views. Outlines draw only in builds with map telemetry.
SetDebugViewsChange the map’s debug views and return all of them. Each field left out keeps its value. The settings outlive the map and apply to the next map spawned. Terrain shadows are set with geo.viewport.set_rendering.

GetDebugViews

RPC

GetDebugViews(request: geo.map.debug.GetDebugViews) -> geo.map.debug.MapDebugState

Return the map’s debug views.

Service method: spatialengine.v1.geo.map.debug.GeoMapDebug.GetDebugViews.

Returns geo.map.debug.MapDebugState.

SetDebugViews

RPC

SetDebugViews(request: geo.map.debug.SetDebugViews) -> geo.map.debug.MapDebugState

Change the map’s debug views and return all of them. Each field left out keeps its value. The settings outlive the map and apply to the next map spawned. Terrain shadows are set with geo.viewport.set_rendering.

Service method: spatialengine.v1.geo.map.debug.GeoMapDebug.SetDebugViews.

Returns geo.map.debug.MapDebugState.

freeze optional : bool

Hold tile selection at the current view.

tile_gizmos optional : bool

Outline each selected tile by its loading state.

tile_bounds optional : bool

Outline each tile as the volume its terrain fills.

layer_bounds optional : bool

Outline each layer’s declared coverage.

lattice_nets optional : bool

Draw the control net each tile’s surface is built from.

drawn_wireframes optional : bool

Draw the triangles handed to the renderer as a wireframe.

level_limits optional : bool

Show the deepest level each layer can serve.

level_colors optional : bool

Color the ground by the level of the tile drawn there. Turning it off draws the imagery.

shader_mode optional : string

What the map shader draws, by name. Applied after level_colors.

GetDebugViews

Message

Return the map’s debug views.

MapDebugState

Message

The map’s debug views. Outlines draw only in builds with map telemetry.

freeze : bool

Whether tile selection holds at the view it was last made for, so the camera can fly out and look at what was selected.

tile_gizmos : bool

Whether each selected tile is outlined, colored by whether it is loaded, loading, queued or missing.

tile_bounds : bool

Whether each tile is outlined as the volume its terrain fills.

layer_bounds : bool

Whether each layer’s declared coverage is outlined.

lattice_nets : bool

Whether the control net each tile’s surface is built from is drawn.

drawn_wireframes : bool

Whether the triangles handed to the renderer are drawn as a wireframe.

level_limits : bool

Whether the deepest level each layer can serve is shown.

level_colors : bool

Whether the ground is colored by the level of the tile drawn there.

shader_mode : string

What the map shader draws in place of the imagery, as one of the names in shader_modes. normal draws the imagery.

shader_modes optional : list[string]

Every name shader_mode accepts.

SetDebugViews

Message

Change the map’s debug views and return all of them. Each field left out keeps its value. The settings outlive the map and apply to the next map spawned. Terrain shadows are set with geo.viewport.set_rendering.

freeze optional : bool

Hold tile selection at the current view.

tile_gizmos optional : bool

Outline each selected tile by its loading state.

tile_bounds optional : bool

Outline each tile as the volume its terrain fills.

layer_bounds optional : bool

Outline each layer’s declared coverage.

lattice_nets optional : bool

Draw the control net each tile’s surface is built from.

drawn_wireframes optional : bool

Draw the triangles handed to the renderer as a wireframe.

level_limits optional : bool

Show the deepest level each layer can serve.

level_colors optional : bool

Color the ground by the level of the tile drawn there. Turning it off draws the imagery.

shader_mode optional : string

What the map shader draws, by name. Applied after level_colors.