geo.map.debug
2 functions / 1 types
Index
| Function | Description |
|---|---|
| getDebugViews | Return the map’s debug views. |
| setDebugViews | 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. |
| Type | Description |
|---|---|
| MapDebugState | The map’s debug views. Outlines draw only in builds with map telemetry. |
getDebugViews
getDebugViews(transactionId?: string): Promise<GeoMapDebugMapDebugState>Return the map’s debug views.
Returns: The map’s debug views. Outlines draw only in builds with map telemetry.
Returns Promise<GeoMapDebugMapDebugState>.
transactionId optional : string
setDebugViews
setDebugViews(args?: { drawnWireframes?: boolean; freeze?: boolean; latticeNets?: boolean; layerBounds?: boolean; levelColors?: boolean; levelLimits?: boolean; shaderMode?: string; tileBounds?: boolean; tileGizmos?: boolean }, transactionId?: string): Promise<GeoMapDebugMapDebugState>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.
Returns: The map’s debug views. Outlines draw only in builds with map telemetry.
Returns Promise<GeoMapDebugMapDebugState>.
drawnWireframes optional : boolean
Draw the triangles handed to the renderer as a wireframe.
freeze optional : boolean
Hold tile selection at the current view.
latticeNets optional : boolean
Draw the control net each tile’s surface is built from.
layerBounds optional : boolean
Outline each layer’s declared coverage.
levelColors optional : boolean
Color the ground by the level of the tile drawn there. Turning it off draws the imagery.
levelLimits optional : boolean
Show the deepest level each layer can serve.
shaderMode optional : string
What the map shader draws, by name. Applied after levelColors.
tileBounds optional : boolean
Outline each tile as the volume its terrain fills.
tileGizmos optional : boolean
Outline each selected tile by its loading state.
transactionId optional : string
MapDebugState
The map’s debug views. Outlines draw only in builds with map telemetry.
drawnWireframes : boolean
Whether the triangles handed to the renderer are drawn as a wireframe.
freeze : boolean
Whether tile selection holds at the view it was last made for, so the camera can fly out and look at what was selected.
latticeNets : boolean
Whether the control net each tile’s surface is built from is drawn.
layerBounds : boolean
Whether each layer’s declared coverage is outlined.
levelColors : boolean
Whether the ground is colored by the level of the tile drawn there.
levelLimits : boolean
Whether the deepest level each layer can serve is shown.
shaderMode : string
What the map shader draws in place of the imagery, as one of the names in
shaderModes. normal draws the imagery.
shaderModes optional : Array<string>
Every name shaderMode accepts.
tileBounds : boolean
Whether each tile is outlined as the volume its terrain fills.
tileGizmos : boolean
Whether each selected tile is outlined, colored by whether it is loaded, loading, queued or missing.