Skip to main content

tile_style

Function tile_style 

Source
pub fn tile_style(
    input: &str,
    options: &TileStyleOptions,
    auth_token: Option<&str>,
) -> Result<(String, Vec<String>), BasemapError>
Expand description

A style for tile data, with overrides: a tile URL template, TileJSON, PMTiles archive (URL or path) or ArcGIS service, as raster tiles or a default vector style over its source layers (see the tile_style module). A style URL or file is returned as is (relative URLs made absolute). Detecting raster or vector may fetch a tile or the archive header. Returns the style JSON and the paint keys that matched no generated layer.