Table of Contents

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

Id string
Type string

The layer's type, such as fill.

SourceId string
SourceLayer string
MinZoom double

The zoom level where the layer starts to show, or negative infinity when the layer doesn't set one.

MaxZoom double

The zoom level where the layer stops showing, or infinity when the layer doesn't set one.

Visibility StyleLayerVisibility

Remarks

See mln_style_layer_info in the C API reference.

Properties

Id

public string Id { get; init; }

Property Value

string

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

double

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

double

SourceId

public string SourceId { get; init; }

Property Value

string

SourceLayer

public string SourceLayer { get; init; }

Property Value

string

Type

The layer's type, such as fill.

public string Type { get; init; }

Property Value

string

Visibility

public StyleLayerVisibility Visibility { get; init; }

Property Value

StyleLayerVisibility