# Class: FlowCoreMapLayer
Core functionality for Flo.w map layers. Wrapped by the <flow-map-layer> web component.
# Hierarchy
- FlowCoreMapLayer
# Constructors
# constructor
+ new FlowCoreMapLayer(options: FlowCoreMapLayerOptions): FlowCoreMapLayer
Constructs a new FlowCoreMapLayer instance.
# Parameters:
| Name | Type | Description |
|---|---|---|
options | FlowCoreMapLayerOptions | Map layer options. |
Returns: FlowCoreMapLayer
# Properties
# id
• id: string
# maxZoom
• maxZoom: number = 18
# minZoom
• minZoom: number = 0
# options
• Readonly options: FlowCoreMapLayerOptions
# Accessors
# maplibreLayerDef
• get maplibreLayerDef(): any
Get computed MaplibreGL style specification for this layer.
Returns: any
# Methods
# setFilter
▸ setFilter(filter: string): void
Set the layer filter.
# Parameters:
| Name | Type | Description |
|---|---|---|
filter | string | Layer filter expression. |
Returns: void
# setStyle
▸ setStyle(style: string): void
Set the layer style.
# Parameters:
| Name | Type | Description |
|---|---|---|
style | string | Style as a Flo.w layer style specification string. |
Returns: void
# setStyleProperties
▸ setStyleProperties(properties: MapLayerStyleProperties): void
Set multiple layer style properties in a single transaction.
# Parameters:
| Name | Type | Description |
|---|---|---|
properties | MapLayerStyleProperties | Property name/value pairs. |
Returns: void
# setStyleProperty
▸ setStyleProperty(property: string, value: string): void
Set an individual style property.
# Parameters:
| Name | Type | Description |
|---|---|---|
property | string | Property name. |
value | string | Property style expression. |
Returns: void