Skip to main content
Module style
basemapper_
core
0.1.1
Module style
Module Items
Enums
Functions
In crate basemapper_
core
basemapper_core
Module
style
Copy item path
Source
Enums
§
Style
Input
Functions
§
filter_
layers
Filter the style JSON’s “layers” array: plain ids or patterns (
*
,
?
) keep the layers they match,
-
-prefixed ones drop them. Returns the style and the patterns that matched no layer. Sources, sprite and glyphs are kept as they are.
filter_
style_
layers
As
filter_layers
, without the unmatched patterns.
layer_
matches
Whether layer id
id
matches
pattern
:
*
matches any run of characters,
?
any one; anything else matches itself.
validate_
maplibre_
style
Validate a resolved MapLibre GL style JSON string.