Skip to main content

list_layers

Function list_layers 

Source
pub fn list_layers(
    style: &str,
    auth_token: Option<&str>,
    filter: &LayerFilter,
) -> Result<Vec<LayerInfo>, BasemapError>
Expand description

A style’s layers in drawing order; with a filter, the layers a render with that filter draws (none when it leaves nothing).

style is anything render accepts: a style, or tile data (a tile URL, TileJSON, PMTiles archive or ArcGIS service) with its built style.