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
namestring
Returns
GetPaintProperty(string)
Returns the JSON-encoded value of a paint property, or null if not set.
public string? GetPaintProperty(string name)
Parameters
namestring
Returns
GetVisibility()
Returns true if the layer is visible.
public bool GetVisibility()
Returns
SetFilter(string)
public void SetFilter(string filterJson)
Parameters
filterJsonstring
SetLayoutProperty(string, object?)
public void SetLayoutProperty(string name, object? value)
Parameters
SetLayoutProperty(string, string)
public void SetLayoutProperty(string name, string valueJson)
Parameters
SetMaxZoom(float)
public void SetMaxZoom(float zoom)
Parameters
zoomfloat
SetMinZoom(float)
public void SetMinZoom(float zoom)
Parameters
zoomfloat
SetPaintProperty(string, object?)
public void SetPaintProperty(string name, object? value)
Parameters
SetPaintProperty(string, string)
public void SetPaintProperty(string name, string valueJson)
Parameters
SetSourceLayer(string)
public void SetSourceLayer(string sourceLayer)
Parameters
sourceLayerstring
SetVisible(bool)
public void SetVisible(bool visible)
Parameters
visiblebool