Skip to content

geo.map.layer

19 functions / 45 types

Index

FunctionDescription
AddArcgisLayerAdd a layer from the tile cache of an ArcGIS MapServer or ImageServer.
AddServiceLayerAdd a discovered dataset to a map without fetching service metadata again. Returns an independent map-layer UUID. Service credentials apply to its tile requests.
AddWmtsLayerAdd a layer of a WMTS service, read from its capabilities document.
AddXyzLayerAdd a layer of slippy map tiles named by a URL template.
GetColorRead the color an imagery layer’s own tiles hold at a place, from the tiles the map has loaded.
GetFeatureInfoAsk each layer’s service what it holds at a place, through the service’s GetFeatureInfo.
GetLayersList the map’s layers in draw order: imagery bottom first, then elevation bottom first.
MoveDown
MoveUp
RemoveAllTake every layer off the map. The map stays, and the cameras stay on it, over a bare globe or flat map.
RemoveLayerTake a layer off the map. The map keeps drawing every other layer without fetching them again.
SetAuthReplace the credentials a layer sends with its source’s document request and every tile request. The map reads the layer’s source again with the new credentials.
SetEmissionDraw an imagery layer as light it gives off, or as ground the sun lights again.
SetIndexMove a layer to another place among the layers of its role, and list every layer.
SetOpacitySet how opaque an imagery layer draws over the layers under it.
SetPlaceholderDetectionEnable or disable placeholder tile detection for one service layer.
SetTimePin a layer with a time axis to one date, or let it follow the scene clock again.
SetTransparentColorDraw one color of an imagery layer clear, or draw every color again.
SetVisibleShow or hide a layer. A hidden layer stops fetching, and the layers under it show through.
TypeDescription
AddArcgisLayerAdd a layer from the tile cache of an ArcGIS MapServer or ImageServer.
AddServiceLayerAdd a discovered dataset to a map without fetching service metadata again. Returns an independent map-layer UUID. Service credentials apply to its tile requests.
AddWmtsLayerAdd a layer of a WMTS service, read from its capabilities document.
AddXyzLayerAdd a layer of slippy map tiles named by a URL template.
ColorEncodingWhat the color values of an imagery layer’s pixels stand for.
ElevationEncodingHow an elevation tile stores its heights.
ElevationOptionsHow an elevation layer decodes and interprets its samples.
ElevationSamplesWhere a tile’s height samples sit.
FeatureInfoWhat one layer’s service answered about a place, as geo.map.layer.get_feature_info reports it.
FollowClock
GeoBoundsA box in degrees of longitude and latitude. west is greater than east for a box that crosses the antimeridian.
GetColorRead the color an imagery layer’s own tiles hold at a place, from the tiles the map has loaded.
GetFeatureInfoAsk each layer’s service what it holds at a place, through the service’s GetFeatureInfo.
GetFeatureInfoResponse
GetLayersList the map’s layers in draw order: imagery bottom first, then elevation bottom first.
GetLayersResponse
KeyValueOne name and value pair.
LayerColorThe color an imagery layer’s own tiles hold at a place.
LayerColorSampleWhat geo.map.layer.get_color found for one imagery layer at a place.
LayerDatesThe dates a layer with a time axis offers, and the one it shows.
LayerIdA map-owned layer’s stable UUID, independent of its provider identifier and draw order.
LayerInfoOne layer of the map.
LayerRoleWhat a layer gives the map.
LayerStateWhether the map has read a layer’s source and can draw it.
MoveDown
MoveDownResponse
MoveUp
MoveUpResponse
NotCoveredThe layer serves no tile at the place.
NotLoadedThe layer serves the place, but no tile over it has loaded at any level.
RemoveAllTake every layer off the map. The map stays, and the cameras stay on it, over a bare globe or flat map.
RemoveLayerTake a layer off the map. The map keeps drawing every other layer without fetching them again.
ResamplingHow an imagery layer’s pixels are read between their centers.
SetAuthReplace the credentials a layer sends with its source’s document request and every tile request. The map reads the layer’s source again with the new credentials.
SetEmissionDraw an imagery layer as light it gives off, or as ground the sun lights again.
SetIndexMove a layer to another place among the layers of its role, and list every layer.
SetIndexResponse
SetOpacitySet how opaque an imagery layer draws over the layers under it.
SetPlaceholderDetectionEnable or disable placeholder tile detection for one service layer.
SetTimePin a layer with a time axis to one date, or let it follow the scene clock again.
SetTransparentColorDraw one color of an imagery layer clear, or draw every color again.
SetVisibleShow or hide a layer. A hidden layer stops fetching, and the layers under it show through.
TileAuthCredentials a layer sends with every request it makes.
TimeSelectionSelect dataset time independently of the viewport’s sunlight configuration.
TransparentColorA color an imagery layer draws clear, for a service that fills the ground it has no data for with a solid color, as a JPEG service must.

AddArcgisLayer

RPC

AddArcgisLayer(request: geo.map.layer.AddArcgisLayer) -> geo.map.layer.LayerId

Add a layer from the tile cache of an ArcGIS MapServer or ImageServer.

The service describes its own grid and levels. An elevation service that serves LERC is read as LERC with corner samples unless elevation says otherwise. The layer goes on top of the layers of its role, and the map reads the service once the layer is added.

Returns the layer UUID before reading the source. Poll geo.map.layer.get_layers for its state and error. A service that cannot be reached or read leaves the saved layer in Failed. Fails when map does not name a map.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.AddArcgisLayer.

Returns geo.map.layer.LayerId.

map : scene.Node

The node geo.map.spawn_map answered for the map.

service_url : string

The service URL, ending in MapServer or ImageServer.

role optional : geo.map.layer.LayerRole

Absent, imagery.

elevation optional : geo.map.layer.ElevationOptions

What the heights mean, for an elevation layer.

auth optional : geo.map.layer.TileAuth

Credentials of your own, sent with the service request and every tile request.

opacity optional : float

From 0, invisible, to 1, opaque. Absent, 1. Elevation layers ignore it.

name optional : string

The name the layer is listed under. Absent, the name the service gives itself.

color_encoding optional : geo.map.layer.ColorEncoding

What the imagery’s pixel values stand for. Absent, sRGB color. Elevation layers ignore it.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of imagery whose color is light it gives off, which is added to the lit ground so it shows where no sun falls. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel of emissive imagery gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

resampling optional : geo.map.layer.Resampling

How the imagery’s pixels are read between their centers. Absent, bilinear. Elevation layers ignore it.

attribution optional : string

The credit the tiles ask for. Absent, the one the service states, if any.

detect_placeholders optional : bool

Enables placeholder tile detection. Absent, enabled. Detection can reject valid repeated tiles; disable it for services that intentionally repeat imagery or heights.

publication_delay_seconds optional : double

Optional publication delay for clock-following dataset selections, in seconds.

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

AddServiceLayer

RPC

AddServiceLayer(request: geo.map.layer.AddServiceLayer) -> geo.map.layer.LayerId

Add a discovered dataset to a map without fetching service metadata again. Returns an independent map-layer UUID. Service credentials apply to its tile requests.

Returns the layer UUID before the map builds the layer. Poll geo.map.layer.get_layers for its state and error. A dataset the map cannot draw, such as one whose tile matrix sets are all in a coordinate reference system the engine does not hold, leaves the saved layer in Failed, and it draws once geo.crs.register registers that system. Fails when map does not name a map, or the service or dataset does not exist.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.AddServiceLayer.

Returns geo.map.layer.LayerId.

selection optional : geo.ServiceLayerSelection

role optional : geo.map.layer.LayerRole

elevation optional : geo.map.layer.ElevationOptions

opacity optional : float

name optional : string

color_encoding optional : geo.map.layer.ColorEncoding

resampling optional : geo.map.layer.Resampling

emission optional : float

black_point optional : float

finest_level optional : uint32

attribution optional : string

detect_placeholders optional : bool

publication_delay_seconds optional : double

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

AddWmtsLayer

RPC

AddWmtsLayer(request: geo.map.layer.AddWmtsLayer) -> geo.map.layer.LayerId

Add a layer of a WMTS service, read from its capabilities document.

The layer goes on top of the layers of its role. The map reads the document once the layer is added, and a document read before with the same credentials, such as by geo.catalog.get_wmts_layers, is not fetched again. A layer with a time axis follows the scene clock until geo.map.layer.set_time pins it to a date.

Returns the layer UUID before reading the source. Poll geo.map.layer.get_layers for its state and error. A document that cannot be reached or read, or that does not declare the layer, leaves the saved layer in Failed. Fails when map does not name a map.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.AddWmtsLayer.

Returns geo.map.layer.LayerId.

map : scene.Node

The node geo.map.spawn_map answered for the map.

capabilities_url : string

The URL of the service’s capabilities document.

provider_layer_id optional : geo.ProviderLayerId

The identifier of the layer to draw. Absent, the layer the service opens on.

tile_matrix_set_id optional : geo.TileMatrixSetId

The tile matrix set to draw on. Absent, the first one the layer links that can be drawn.

style_id optional : geo.StyleId

Absent, the layer’s default style.

format optional : geo.MediaType

The tile media type. Absent, the first one the layer offers that can be decoded, or for elevation the one that holds heights.

role optional : geo.map.layer.LayerRole

Absent, imagery.

elevation optional : geo.map.layer.ElevationOptions

What the heights mean. Needed when role is elevation, unless the layer’s format is LERC or its name says Terrarium or Terrain-RGB.

auth optional : geo.map.layer.TileAuth

Credentials of your own, sent with the capabilities request and every tile request.

opacity optional : float

From 0, invisible, to 1, opaque. Absent, 1. Elevation layers ignore it.

name optional : string

The name the layer is listed under. Absent, the title the service gives it.

color_encoding optional : geo.map.layer.ColorEncoding

What the imagery’s pixel values stand for. Absent, sRGB color. Elevation layers ignore it.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of imagery whose color is light it gives off, which is added to the lit ground so it shows where no sun falls. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel of emissive imagery gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

resampling optional : geo.map.layer.Resampling

How the imagery’s pixels are read between their centers. Absent, bilinear. Elevation layers ignore it.

finest_level optional : uint32

The deepest level to fetch, for a service that serves deeper levels only as this one enlarged. The map enlarges it itself, smoothly and without fetching more. Absent, every level the layer declares.

attribution optional : string

The credit the tiles ask for, since a capabilities document has no field for one.

detect_placeholders optional : bool

Enables placeholder tile detection. Absent, enabled. Detection can reject valid repeated tiles; disable it for services that intentionally repeat imagery or heights.

publication_delay_seconds optional : double

Optional publication delay for clock-following dataset selections, in seconds.

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

AddXyzLayer

RPC

AddXyzLayer(request: geo.map.layer.AddXyzLayer) -> geo.map.layer.LayerId

Add a layer of slippy map tiles named by a URL template.

The template holds {z}, {x} and {y}, and the tiles are taken to be on the Web Mercator quad with row 0 at the top, which is the grid that form describes. The layer goes on top of the layers of its role.

Returns the layer UUID. Poll geo.map.layer.get_layers for source configuration failures. Ready means the configuration was accepted, not that tiles were fetched. A template that answers nothing shows missing tiles and can still report Ready.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.AddXyzLayer.

Returns geo.map.layer.LayerId.

subdomains optional : list[string]

Host labels used for {s}. Single-character ranges such as {a-c} need no list.

map : scene.Node

The node geo.map.spawn_map answered for the map.

template : geo.TileUrlTemplate

The tile URL, with {z}, {x} and {y} where the level, column and row go.

min_zoom optional : uint32

The coarsest level served. Absent, 0.

max_zoom optional : uint32

The deepest level served. Absent, 19.

tile_size optional : uint32

Pixels along a tile’s side. Absent, 256.

role optional : geo.map.layer.LayerRole

Absent, imagery.

elevation optional : geo.map.layer.ElevationOptions

What the heights mean. Needed when role is elevation.

auth optional : geo.map.layer.TileAuth

Credentials of your own, sent with every tile request.

opacity optional : float

From 0, invisible, to 1, opaque. Absent, 1. Elevation layers ignore it.

name optional : string

The name the layer is listed under. Absent, the host the template names.

attribution optional : string

The credit the tiles ask for.

color_encoding optional : geo.map.layer.ColorEncoding

What the imagery’s pixel values stand for. Absent, sRGB color. Elevation layers ignore it.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of imagery whose color is light it gives off, which is added to the lit ground so it shows where no sun falls. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel of emissive imagery gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

resampling optional : geo.map.layer.Resampling

How the imagery’s pixels are read between their centers. Absent, bilinear. Elevation layers ignore it.

detect_placeholders optional : bool

Enables placeholder tile detection. Absent, enabled. Detection can reject valid repeated tiles; disable it for services that intentionally repeat imagery or heights.

publication_delay_seconds optional : double

Optional publication delay for clock-following dataset selections, in seconds.

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

GetColor

RPC

GetColor(request: geo.map.layer.GetColor) -> geo.map.layer.LayerColorSample

Read the color an imagery layer’s own tiles hold at a place, from the tiles the map has loaded.

The color is the tile’s pixel as decoded, before the layer’s opacity, emission and transparent color, before light, and before the layers above and below it. So a categorical map, such as a geological map, answers one of the colors its legend lists, whether or not its service answers geo.map.layer.get_feature_info. The finest tile the layer serves at the place answers where it has loaded, and otherwise the nearest coarser tile that has, which a level less than finest_level reports. Nothing is fetched and nothing the map draws changes.

Answers NotCovered where the layer serves no tile, and NotLoaded where no tile over the place has loaded yet, such as while the layer’s source is still being read. A hidden layer answers from the tiles it still holds. Fails when map is not a map, when layer_id is not one of its layers, or when the layer is an elevation layer.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.GetColor.

Returns geo.map.layer.LayerColorSample.

map : scene.Node

The node geo.map.spawn_map answered for the map.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

position : geo.GeoPosition

GetFeatureInfo

RPC

GetFeatureInfo(request: geo.map.layer.GetFeatureInfo) -> geo.map.layer.GetFeatureInfoResponse

Ask each layer’s service what it holds at a place, through the service’s GetFeatureInfo.

Only layers whose service declares GetFeatureInfo and that cover the place answer, so a map of plain tiles answers with an empty list. A layer whose service fails to answer is left out. The place must be on ground the map has loaded, and the answer is empty while the map morphs between the globe and the flat map. Fails when no map is spawned.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.GetFeatureInfo.

Returns geo.map.layer.GetFeatureInfoResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map.

position : geo.GeoPosition

GetLayers

RPC

GetLayers(request: geo.map.layer.GetLayers) -> geo.map.layer.GetLayersResponse

List the map’s layers in draw order: imagery bottom first, then elevation bottom first.

Poll state after layer creation. Ready means the source is configured, not that every tile has loaded. Source configuration failures leave the layer saved with state set to Failed and the reason in error. Individual tile failures do not change the layer’s state.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.GetLayers.

Returns geo.map.layer.GetLayersResponse.

map : scene.Node

The node geo.map.spawn_map answered for the map to list.

MoveDown

RPC

MoveDown(request: geo.map.layer.MoveDown) -> geo.map.layer.MoveDownResponse

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.MoveDown.

Returns geo.map.layer.MoveDownResponse.

MoveUp

RPC

MoveUp(request: geo.map.layer.MoveUp) -> geo.map.layer.MoveUpResponse

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.MoveUp.

Returns geo.map.layer.MoveUpResponse.

RemoveAll

RPC

RemoveAll(request: geo.map.layer.RemoveAll) -> google.protobuf.Empty

Take every layer off the map. The map stays, and the cameras stay on it, over a bare globe or flat map.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.RemoveAll.

Returns google.protobuf.Empty.

map : scene.Node

The node geo.map.spawn_map answered for the map to clear.

RemoveLayer

RPC

RemoveLayer(request: geo.map.layer.RemoveLayer) -> google.protobuf.Empty

Take a layer off the map. The map keeps drawing every other layer without fetching them again.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.RemoveLayer.

Returns google.protobuf.Empty.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

SetAuth

RPC

SetAuth(request: geo.map.layer.SetAuth) -> geo.map.layer.LayerInfo

Replace the credentials a layer sends with its source’s document request and every tile request. The map reads the layer’s source again with the new credentials.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetAuth.

Returns geo.map.layer.LayerInfo.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

auth : geo.map.layer.TileAuth

The credentials to send. Empty lists send none.

SetEmission

RPC

SetEmission(request: geo.map.layer.SetEmission) -> geo.map.layer.LayerInfo

Draw an imagery layer as light it gives off, or as ground the sun lights again.

An emissive layer’s color, times its radiance, is added to the lit ground rather than laid over it, so it shows where no sun falls and is lost beside ground in full daylight. It neither hides the layers under it nor is hidden by the ones above, and its opacity scales its light.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetEmission.

Returns geo.map.layer.LayerInfo.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

emission optional : float

The radiance, in candela per square meter, of a full white pixel. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

SetIndex

RPC

SetIndex(request: geo.map.layer.SetIndex) -> geo.map.layer.SetIndexResponse

Move a layer to another place among the layers of its role, and list every layer.

Imagery draws from the bottom up. The top elevation layer gives the ground its height wherever it has data.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetIndex.

Returns geo.map.layer.SetIndexResponse.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

index : uint32

The place among the layers of its role, 0 being the bottom. Past the top, the top.

SetOpacity

RPC

SetOpacity(request: geo.map.layer.SetOpacity) -> geo.map.layer.LayerInfo

Set how opaque an imagery layer draws over the layers under it.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetOpacity.

Returns geo.map.layer.LayerInfo.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

opacity : float

From 0, invisible, to 1, opaque. Elevation layers ignore it.

SetPlaceholderDetection

RPC

SetPlaceholderDetection(request: geo.map.layer.SetPlaceholderDetection) -> geo.map.layer.LayerInfo

Enable or disable placeholder tile detection for one service layer.

Enabled by default. Detection classifies repeated nonuniform tiles as placeholders and can reject valid repeated imagery or heights. Disabling it makes previously rejected tiles eligible for fetching again. HTTP missing responses and nodata samples retain their normal behavior.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetPlaceholderDetection.

Returns geo.map.layer.LayerInfo.

enabled : bool

SetTime

RPC

SetTime(request: geo.map.layer.SetTime) -> geo.map.layer.LayerInfo

Pin a layer with a time axis to one date, or let it follow the scene clock again.

Select the layer’s dataset time independently of sunlight.

The layer shows the latest advertised time at or before the selected instant, clamped to its available range. FollowClock uses the scene clock. Pinned requires an RFC 3339 timestamp with a UTC offset. A layer without a time axis retains the selection without changing tiles.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetTime.

Returns geo.map.layer.LayerInfo.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

SetTransparentColor

RPC

SetTransparentColor(request: geo.map.layer.SetTransparentColor) -> geo.map.layer.LayerInfo

Draw one color of an imagery layer clear, or draw every color again.

This is for a service that fills the ground it has no data for with a solid color, as a JPEG service must, which otherwise hides every layer under the layer there. Pixels of the color draw clear and the layers under them show through. A layer with a transparent color never hides the layers under it, so they are always fetched and drawn. Where the map blends a pixel of the color with a pixel of data, as it does along the edge of the data and when the layer is seen from far away, the blend is kept, so a faint fringe of the color can show there. Elevation layers ignore it.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetTransparentColor.

Returns geo.map.layer.LayerInfo.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

color optional : color.ColorRgb

The color to draw clear, as the layer’s pixels write it, with 8-bit channels (0 to 255), such as 255, 255, 255 for white. Absent, the layer draws every color again.

tolerance optional : uint32

How many 8-bit steps, from 0 to 255, each channel of a pixel may lie from color for the pixel to draw clear. A larger value clears more of the fill but also clears imagery close to its color. Absent, 4.

SetVisible

RPC

SetVisible(request: geo.map.layer.SetVisible) -> geo.map.layer.LayerInfo

Show or hide a layer. A hidden layer stops fetching, and the layers under it show through.

Service method: spatialengine.v1.geo.map.layer.GeoMapLayer.SetVisible.

Returns geo.map.layer.LayerInfo.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

visible : bool

AddArcgisLayer

Message

Add a layer from the tile cache of an ArcGIS MapServer or ImageServer.

The service describes its own grid and levels. An elevation service that serves LERC is read as LERC with corner samples unless elevation says otherwise. The layer goes on top of the layers of its role, and the map reads the service once the layer is added.

Returns the layer UUID before reading the source. Poll geo.map.layer.get_layers for its state and error. A service that cannot be reached or read leaves the saved layer in Failed. Fails when map does not name a map.

map : scene.Node

The node geo.map.spawn_map answered for the map.

service_url : string

The service URL, ending in MapServer or ImageServer.

role optional : geo.map.layer.LayerRole

Absent, imagery.

elevation optional : geo.map.layer.ElevationOptions

What the heights mean, for an elevation layer.

auth optional : geo.map.layer.TileAuth

Credentials of your own, sent with the service request and every tile request.

opacity optional : float

From 0, invisible, to 1, opaque. Absent, 1. Elevation layers ignore it.

name optional : string

The name the layer is listed under. Absent, the name the service gives itself.

color_encoding optional : geo.map.layer.ColorEncoding

What the imagery’s pixel values stand for. Absent, sRGB color. Elevation layers ignore it.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of imagery whose color is light it gives off, which is added to the lit ground so it shows where no sun falls. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel of emissive imagery gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

resampling optional : geo.map.layer.Resampling

How the imagery’s pixels are read between their centers. Absent, bilinear. Elevation layers ignore it.

attribution optional : string

The credit the tiles ask for. Absent, the one the service states, if any.

detect_placeholders optional : bool

Enables placeholder tile detection. Absent, enabled. Detection can reject valid repeated tiles; disable it for services that intentionally repeat imagery or heights.

publication_delay_seconds optional : double

Optional publication delay for clock-following dataset selections, in seconds.

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

AddServiceLayer

Message

Add a discovered dataset to a map without fetching service metadata again. Returns an independent map-layer UUID. Service credentials apply to its tile requests.

Returns the layer UUID before the map builds the layer. Poll geo.map.layer.get_layers for its state and error. A dataset the map cannot draw, such as one whose tile matrix sets are all in a coordinate reference system the engine does not hold, leaves the saved layer in Failed, and it draws once geo.crs.register registers that system. Fails when map does not name a map, or the service or dataset does not exist.

selection optional : geo.ServiceLayerSelection

role optional : geo.map.layer.LayerRole

elevation optional : geo.map.layer.ElevationOptions

opacity optional : float

name optional : string

color_encoding optional : geo.map.layer.ColorEncoding

resampling optional : geo.map.layer.Resampling

emission optional : float

black_point optional : float

finest_level optional : uint32

attribution optional : string

detect_placeholders optional : bool

publication_delay_seconds optional : double

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

AddWmtsLayer

Message

Add a layer of a WMTS service, read from its capabilities document.

The layer goes on top of the layers of its role. The map reads the document once the layer is added, and a document read before with the same credentials, such as by geo.catalog.get_wmts_layers, is not fetched again. A layer with a time axis follows the scene clock until geo.map.layer.set_time pins it to a date.

Returns the layer UUID before reading the source. Poll geo.map.layer.get_layers for its state and error. A document that cannot be reached or read, or that does not declare the layer, leaves the saved layer in Failed. Fails when map does not name a map.

map : scene.Node

The node geo.map.spawn_map answered for the map.

capabilities_url : string

The URL of the service’s capabilities document.

provider_layer_id optional : geo.ProviderLayerId

The identifier of the layer to draw. Absent, the layer the service opens on.

tile_matrix_set_id optional : geo.TileMatrixSetId

The tile matrix set to draw on. Absent, the first one the layer links that can be drawn.

style_id optional : geo.StyleId

Absent, the layer’s default style.

format optional : geo.MediaType

The tile media type. Absent, the first one the layer offers that can be decoded, or for elevation the one that holds heights.

role optional : geo.map.layer.LayerRole

Absent, imagery.

elevation optional : geo.map.layer.ElevationOptions

What the heights mean. Needed when role is elevation, unless the layer’s format is LERC or its name says Terrarium or Terrain-RGB.

auth optional : geo.map.layer.TileAuth

Credentials of your own, sent with the capabilities request and every tile request.

opacity optional : float

From 0, invisible, to 1, opaque. Absent, 1. Elevation layers ignore it.

name optional : string

The name the layer is listed under. Absent, the title the service gives it.

color_encoding optional : geo.map.layer.ColorEncoding

What the imagery’s pixel values stand for. Absent, sRGB color. Elevation layers ignore it.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of imagery whose color is light it gives off, which is added to the lit ground so it shows where no sun falls. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel of emissive imagery gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

resampling optional : geo.map.layer.Resampling

How the imagery’s pixels are read between their centers. Absent, bilinear. Elevation layers ignore it.

finest_level optional : uint32

The deepest level to fetch, for a service that serves deeper levels only as this one enlarged. The map enlarges it itself, smoothly and without fetching more. Absent, every level the layer declares.

attribution optional : string

The credit the tiles ask for, since a capabilities document has no field for one.

detect_placeholders optional : bool

Enables placeholder tile detection. Absent, enabled. Detection can reject valid repeated tiles; disable it for services that intentionally repeat imagery or heights.

publication_delay_seconds optional : double

Optional publication delay for clock-following dataset selections, in seconds.

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

AddXyzLayer

Message

Add a layer of slippy map tiles named by a URL template.

The template holds {z}, {x} and {y}, and the tiles are taken to be on the Web Mercator quad with row 0 at the top, which is the grid that form describes. The layer goes on top of the layers of its role.

Returns the layer UUID. Poll geo.map.layer.get_layers for source configuration failures. Ready means the configuration was accepted, not that tiles were fetched. A template that answers nothing shows missing tiles and can still report Ready.

subdomains optional : list[string]

Host labels used for {s}. Single-character ranges such as {a-c} need no list.

map : scene.Node

The node geo.map.spawn_map answered for the map.

template : geo.TileUrlTemplate

The tile URL, with {z}, {x} and {y} where the level, column and row go.

min_zoom optional : uint32

The coarsest level served. Absent, 0.

max_zoom optional : uint32

The deepest level served. Absent, 19.

tile_size optional : uint32

Pixels along a tile’s side. Absent, 256.

role optional : geo.map.layer.LayerRole

Absent, imagery.

elevation optional : geo.map.layer.ElevationOptions

What the heights mean. Needed when role is elevation.

auth optional : geo.map.layer.TileAuth

Credentials of your own, sent with every tile request.

opacity optional : float

From 0, invisible, to 1, opaque. Absent, 1. Elevation layers ignore it.

name optional : string

The name the layer is listed under. Absent, the host the template names.

attribution optional : string

The credit the tiles ask for.

color_encoding optional : geo.map.layer.ColorEncoding

What the imagery’s pixel values stand for. Absent, sRGB color. Elevation layers ignore it.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of imagery whose color is light it gives off, which is added to the lit ground so it shows where no sun falls. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel of emissive imagery gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

resampling optional : geo.map.layer.Resampling

How the imagery’s pixels are read between their centers. Absent, bilinear. Elevation layers ignore it.

detect_placeholders optional : bool

Enables placeholder tile detection. Absent, enabled. Detection can reject valid repeated tiles; disable it for services that intentionally repeat imagery or heights.

publication_delay_seconds optional : double

Optional publication delay for clock-following dataset selections, in seconds.

known_placeholder_hashes optional : list[string]

Encoded missing-data tile hashes, each written as fnv1a64: and 16 hex digits.

ColorEncoding

Enum

What the color values of an imagery layer’s pixels stand for.

COLOR_ENCODING_SRGB = 0

sRGB encoded color, as photographs and drawn maps are published.

COLOR_ENCODING_LINEAR = 1

Values that rise in proportion to the light, as measured data such as a reflectance mosaic is often stretched to. A value from 0 to 255 stands for that share of full intensity.

ElevationEncoding

Enum

How an elevation tile stores its heights.

ELEVATION_ENCODING_LERC = 0

Esri’s LERC compression.

ELEVATION_ENCODING_TERRAIN_RGB = 1

Mapbox Terrain-RGB PNG.

ELEVATION_ENCODING_TERRARIUM = 2

Terrarium PNG.

ELEVATION_ENCODING_FLOAT32 = 3

Raw little endian 32 bit floats.

ElevationOptions

Message

How an elevation layer decodes and interprets its samples.

encoding optional : geo.map.layer.ElevationEncoding

How a tile stores its heights. Absent, the encoding the service declares; required for a service that declares none. An ArcGIS service that serves LERC is read as LERC whatever this says.

samples optional : geo.map.layer.ElevationSamples

Where the samples sit. Absent, LERC samples sit on the corners and every other encoding on the pixel centers.

datum optional : geo.VerticalDatum

What the heights are measured from. Required: a layer without it is refused with InvalidArgument, because a wrong guess places the terrain tens of meters off. When the source does not say, state your guess and set reference_assumed.

unit_scale optional : double

Multiplies every decoded height. Absent, one.

vertical_offset optional : double

Added to every height after scaling, in meters. Absent, zero.

geoid_model optional : geo.GeoidModelId

The geoid the orthometric heights refer to. Orthometric heights without one cannot be placed, so the map refuses them.

vertical_crs optional : geo.VerticalCrsId

reference_assumed optional : bool

Whether datum and geoid_model are your guess rather than what the source states. The heights are converted the same either way. Every height read from the layer reports the assumption. Absent, false.

ElevationSamples

Enum

Where a tile’s height samples sit.

ELEVATION_SAMPLES_CORNERS = 0

On the tile corners, so neighboring tiles share their edge samples.

ELEVATION_SAMPLES_CENTERS = 1

At the pixel centers.

FeatureInfo

Message

What one layer’s service answered about a place, as geo.map.layer.get_feature_info reports it.

layer : string

The name the layer is listed under.

content_type : string

The media type the layer asks its service to answer in, such as text/html.

body : string

The service’s answer, as text.

FollowClock

Message

GeoBounds

Message

A box in degrees of longitude and latitude. west is greater than east for a box that crosses the antimeridian.

west : double

south : double

east : double

north : double

GetColor

Message

Read the color an imagery layer’s own tiles hold at a place, from the tiles the map has loaded.

The color is the tile’s pixel as decoded, before the layer’s opacity, emission and transparent color, before light, and before the layers above and below it. So a categorical map, such as a geological map, answers one of the colors its legend lists, whether or not its service answers geo.map.layer.get_feature_info. The finest tile the layer serves at the place answers where it has loaded, and otherwise the nearest coarser tile that has, which a level less than finest_level reports. Nothing is fetched and nothing the map draws changes.

Answers NotCovered where the layer serves no tile, and NotLoaded where no tile over the place has loaded yet, such as while the layer’s source is still being read. A hidden layer answers from the tiles it still holds. Fails when map is not a map, when layer_id is not one of its layers, or when the layer is an elevation layer.

map : scene.Node

The node geo.map.spawn_map answered for the map.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

position : geo.GeoPosition

GetFeatureInfo

Message

Ask each layer’s service what it holds at a place, through the service’s GetFeatureInfo.

Only layers whose service declares GetFeatureInfo and that cover the place answer, so a map of plain tiles answers with an empty list. A layer whose service fails to answer is left out. The place must be on ground the map has loaded, and the answer is empty while the map morphs between the globe and the flat map. Fails when no map is spawned.

map : scene.Node

The node geo.map.spawn_map answered for the map.

position : geo.GeoPosition

GetFeatureInfoResponse

Message

value optional : list[geo.map.layer.FeatureInfo]

GetLayers

Message

List the map’s layers in draw order: imagery bottom first, then elevation bottom first.

Poll state after layer creation. Ready means the source is configured, not that every tile has loaded. Source configuration failures leave the layer saved with state set to Failed and the reason in error. Individual tile failures do not change the layer’s state.

map : scene.Node

The node geo.map.spawn_map answered for the map to list.

GetLayersResponse

Message

value optional : list[geo.map.layer.LayerInfo]

KeyValue

Message

One name and value pair.

key : string

value : string

LayerColor

Message

The color an imagery layer’s own tiles hold at a place.

color : color.ColorRgba

The pixel of the tile under the place, as the tile was decoded: before the layer’s opacity, emission and transparent color, before light, and before the layers above and below it.

level : uint32

The tile matrix level the pixel was read from, 0 being the coarsest.

finest_level : uint32

The finest level the layer serves at the place. A level less than this means the finer tile has not loaded and a coarser one answered.

LayerColorSample

Message

What geo.map.layer.get_color found for one imagery layer at a place.

Choose one of: color, not_covered, not_loaded.

color optional : geo.map.layer.LayerColor

not_covered optional : geo.map.layer.NotCovered

not_loaded optional : geo.map.layer.NotLoaded

LayerDates

Message

The dates a layer with a time axis offers, and the one it shows.

A layer that follows the clock shows the latest date its service offers at or before the clock’s time, held between first and last.

date optional : string

The date the layer shows, written as its service writes dates, such as 2024-06-12. Absent until the map has picked one.

first : string

The earliest date the service offers.

last : string

The latest date the service advertises.

step optional : string

The time between dates as an ISO 8601 duration, such as P1D for a daily layer. Absent when the service lists its dates one by one.

LayerId

Message

A map-owned layer’s stable UUID, independent of its provider identifier and draw order.

uuid : string

LayerInfo

Message

One layer of the map.

layer_id : geo.map.layer.LayerId

The handle the geo.map.layer statements take. It stays the same for the life of the layer, and no other layer of the map ever gets it.

name : string

The name given when the layer was spawned, or else the name its source gives it once the source has been read.

opacity : float

From 0, invisible, to 1, opaque. Elevation layers always report 1.

visible : bool

source : string

The service URL or tile template the layer was spawned from.

attribution optional : string

The credit the source asks for, where it states one.

error optional : string

Why source configuration failed, when state is failed.

dates optional : geo.map.layer.LayerDates

The dates the layer can show and the one it shows, for a layer whose source has been read and declares a time axis.

time : geo.map.layer.TimeSelection

The requested time selection. dates.date reports the provider’s selected dataset value.

emission optional : float

The radiance, in candela per square meter, of a full white pixel of an emissive imagery layer, as geo.map.layer.set_emission sets it. Absent, the sun and sky light the layer.

black_point optional : float

The linear luminance at or below which a pixel of an emissive imagery layer gives off no light, as geo.map.layer.set_emission sets it. Absent for a layer that is not emissive.

area optional : geo.map.layer.GeoBounds

The ground the layer covers, as its source declares it or else as its tile grid reaches. Absent until state is ready, and absent when the area covers three quarters or more of the body’s surface, which counts as the whole body. Also absent when the layer’s grid cannot be placed in longitude and latitude.

transparent_color optional : geo.map.layer.TransparentColor

The color an imagery layer draws clear, as geo.map.layer.set_transparent_color sets it. Absent, the layer draws every color it holds.

detect_placeholders : bool

Whether repeated nonuniform tiles can be classified as placeholders.

elevation_reference optional : geo.ElevationReference

legend_url optional : string

The URL of the legend image a WMTS service publishes for the style the layer draws, as the service’s capabilities document writes it. Absent when the service publishes none, and for sources other than WMTS.

LayerRole

Enum

What a layer gives the map.

LAYER_ROLE_IMAGERY = 0

Colors drawn on the ground. Imagery layers draw from the bottom up.

LAYER_ROLE_ELEVATION = 1

Heights the ground is raised to. The top elevation layer wins where it has data.

LayerState

Enum

Whether the map has read a layer’s source and can draw it.

LAYER_STATE_LOADING = 0

Source configuration has not finished.

LAYER_STATE_READY = 1

The source is configured. Individual tiles can still be missing or loading.

LAYER_STATE_FAILED = 2

The source could not be read or converted to the map’s elevation reference. The layer stays saved and is read again when the project is next loaded or the layer’s source or credentials change.

MoveDown

Message

MoveDownResponse

Message

value optional : list[geo.map.layer.LayerInfo]

MoveUp

Message

MoveUpResponse

Message

value optional : list[geo.map.layer.LayerInfo]

NotCovered

Message

The layer serves no tile at the place.

NotLoaded

Message

The layer serves the place, but no tile over it has loaded at any level.

RemoveAll

Message

Take every layer off the map. The map stays, and the cameras stay on it, over a bare globe or flat map.

map : scene.Node

The node geo.map.spawn_map answered for the map to clear.

RemoveLayer

Message

Take a layer off the map. The map keeps drawing every other layer without fetching them again.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

Resampling

Enum

How an imagery layer’s pixels are read between their centers.

RESAMPLING_BILINEAR = 0

Blends the four nearest pixels, for pictures and measured values.

RESAMPLING_NEAREST = 1

Takes the nearest pixel, for class codes such as land cover, where a blend of two codes would be a third code that is in neither pixel.

SetAuth

Message

Replace the credentials a layer sends with its source’s document request and every tile request. The map reads the layer’s source again with the new credentials.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

auth : geo.map.layer.TileAuth

The credentials to send. Empty lists send none.

SetEmission

Message

Draw an imagery layer as light it gives off, or as ground the sun lights again.

An emissive layer’s color, times its radiance, is added to the lit ground rather than laid over it, so it shows where no sun falls and is lost beside ground in full daylight. It neither hides the layers under it nor is hidden by the ones above, and its opacity scales its light.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

emission optional : float

The radiance, in candela per square meter, of a full white pixel. Absent or 0, the sun lights the layer. Elevation layers ignore it.

black_point optional : float

The linear luminance, from 0 up to but not including 1, at or below which a pixel gives off no light. A brighter pixel gives off light in proportion to its luminance above the black point, so a full white pixel still gives off the whole emission. Absent, 0.

SetIndex

Message

Move a layer to another place among the layers of its role, and list every layer.

Imagery draws from the bottom up. The top elevation layer gives the ground its height wherever it has data.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

index : uint32

The place among the layers of its role, 0 being the bottom. Past the top, the top.

SetIndexResponse

Message

value optional : list[geo.map.layer.LayerInfo]

SetOpacity

Message

Set how opaque an imagery layer draws over the layers under it.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

opacity : float

From 0, invisible, to 1, opaque. Elevation layers ignore it.

SetPlaceholderDetection

Message

Enable or disable placeholder tile detection for one service layer.

Enabled by default. Detection classifies repeated nonuniform tiles as placeholders and can reject valid repeated imagery or heights. Disabling it makes previously rejected tiles eligible for fetching again. HTTP missing responses and nodata samples retain their normal behavior.

enabled : bool

SetTime

Message

Pin a layer with a time axis to one date, or let it follow the scene clock again.

Select the layer’s dataset time independently of sunlight.

The layer shows the latest advertised time at or before the selected instant, clamped to its available range. FollowClock uses the scene clock. Pinned requires an RFC 3339 timestamp with a UTC offset. A layer without a time axis retains the selection without changing tiles.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

SetTransparentColor

Message

Draw one color of an imagery layer clear, or draw every color again.

This is for a service that fills the ground it has no data for with a solid color, as a JPEG service must, which otherwise hides every layer under the layer there. Pixels of the color draw clear and the layers under them show through. A layer with a transparent color never hides the layers under it, so they are always fetched and drawn. Where the map blends a pixel of the color with a pixel of data, as it does along the edge of the data and when the layer is seen from far away, the blend is kept, so a faint fringe of the color can show there. Elevation layers ignore it.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

color optional : color.ColorRgb

The color to draw clear, as the layer’s pixels write it, with 8-bit channels (0 to 255), such as 255, 255, 255 for white. Absent, the layer draws every color again.

tolerance optional : uint32

How many 8-bit steps, from 0 to 255, each channel of a pixel may lie from color for the pixel to draw clear. A larger value clears more of the fill but also clears imagery close to its color. Absent, 4.

SetVisible

Message

Show or hide a layer. A hidden layer stops fetching, and the layers under it show through.

layer_id : geo.map.layer.LayerId

The layer’s id from geo.map.layer.get_layers.

visible : bool

TileAuth

Message

Credentials a layer sends with every request it makes.

Query pairs are appended to every request URL: the service document and every tile. Headers are sent on every request. A browser refuses some headers on a cross-origin request unless the service allows them, so a key is more likely to work as a query pair there. A layer’s credentials are saved with the project, values included.

query optional : list[geo.map.layer.KeyValue]

headers optional : list[geo.map.layer.KeyValue]

TimeSelection

Message

Select dataset time independently of the viewport’s sunlight configuration.

Choose one of: follow_clock, pinned.

follow_clock optional : geo.map.layer.FollowClock

pinned optional : datetime.Timestamp

TransparentColor

Message

A color an imagery layer draws clear, for a service that fills the ground it has no data for with a solid color, as a JPEG service must.

color : color.ColorRgb

The color as the layer’s pixels write it, with 8-bit channels (0 to 255).

tolerance : uint32

How many 8-bit steps each channel of a pixel may lie from color for the pixel to draw clear.