Table of Contents

Class MbglLayer

Namespace
MapLibreNative.Maui

Non-owning handle to a layer inside a loaded style.

public sealed class MbglLayer
Inheritance
MbglLayer
Inherited Members

Methods

GetLayoutProperty(string)

Returns the JSON-encoded value of a layout property, or null if not set.

public string? GetLayoutProperty(string name)

Parameters

name string

Returns

string

GetPaintProperty(string)

Returns the JSON-encoded value of a paint property, or null if not set.

public string? GetPaintProperty(string name)

Parameters

name string

Returns

string

GetVisibility()

Returns true if the layer is visible.

public bool GetVisibility()

Returns

bool

SetFilter(string)

public void SetFilter(string filterJson)

Parameters

filterJson string

SetLayoutProperty(string, object?)

public void SetLayoutProperty(string name, object? value)

Parameters

name string
value object

SetLayoutProperty(string, string)

public void SetLayoutProperty(string name, string valueJson)

Parameters

name string
valueJson string

JSON-encoded value

SetMaxZoom(float)

public void SetMaxZoom(float zoom)

Parameters

zoom float

SetMinZoom(float)

public void SetMinZoom(float zoom)

Parameters

zoom float

SetPaintProperty(string, object?)

public void SetPaintProperty(string name, object? value)

Parameters

name string
value object

SetPaintProperty(string, string)

public void SetPaintProperty(string name, string valueJson)

Parameters

name string
valueJson string

JSON-encoded value, e.g. ""#ff0000"" or "["get","class"]"

SetSourceLayer(string)

public void SetSourceLayer(string sourceLayer)

Parameters

sourceLayer string

SetVisible(bool)

public void SetVisible(bool visible)

Parameters

visible bool