Struct StyleLayerInfo
- Namespace
- Maplibre.NativeFfi
- Assembly
- Maplibre.NativeFfi.dll
A layer in the map's style.
public readonly record struct StyleLayerInfo : IEquatable<StyleLayerInfo>
- Implements
- Inherited Members
Remarks
See mln_style_layer_info in the C API reference.
Constructors
StyleLayerInfo(string, string, string, string, double, double, StyleLayerVisibility)
A layer in the map's style.
public StyleLayerInfo(string Id, string Type, string SourceId, string SourceLayer, double MinZoom, double MaxZoom, StyleLayerVisibility Visibility)
Parameters
IdstringTypestringThe layer's type, such as
fill.SourceIdstringSourceLayerstringMinZoomdoubleThe zoom level where the layer starts to show, or negative infinity when the layer doesn't set one.
MaxZoomdoubleThe zoom level where the layer stops showing, or infinity when the layer doesn't set one.
VisibilityStyleLayerVisibility
Remarks
See mln_style_layer_info in the C API reference.
Properties
Id
public string Id { get; init; }
Property Value
MaxZoom
The zoom level where the layer stops showing, or infinity when the layer doesn't set one.
public double MaxZoom { get; init; }
Property Value
MinZoom
The zoom level where the layer starts to show, or negative infinity when the layer doesn't set one.
public double MinZoom { get; init; }
Property Value
SourceId
public string SourceId { get; init; }
Property Value
SourceLayer
public string SourceLayer { get; init; }
Property Value
Type
The layer's type,
such as fill.
public string Type { get; init; }
Property Value
Visibility
public StyleLayerVisibility Visibility { get; init; }