HtmlForgeX

API Reference

Command

New-HtmlXLeafletLayerControl

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.LeafletMap

Enables and configures the Leaflet layer control.

Remarks

Use inside New-HtmlXLeafletMap { }.

Examples

Imported script example

New-HtmlXLeafletLayerControl -Collapsed:$false -IncludeUngroupedMarkers -UngroupedMarkersLabel "Ungrouped"
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-HtmlXLeafletLayerControl [-Collapsed <bool>] [-DefaultBaseLayerName <string>] [-IncludeUngroupedMarkers <bool>] [-Position <TopLeft|TopRight|BottomLeft|BottomRight>] [-UngroupedMarkersLabel <string>] [-UseOnlyConfiguredBaseLayers <bool>] [<CommonParameters>]
#

Parameters

Collapsed bool optionalposition: namedpipeline: false
Whether the control is collapsed by default.
DefaultBaseLayerName string optionalposition: namedpipeline: false
Display name for the default base layer.
IncludeUngroupedMarkers bool optionalposition: namedpipeline: false
Include ungrouped markers as an overlay toggle.
Position LeafletControlPosition optionalposition: namedpipeline: falsevalues: 4
Control position. Possible values: TopLeft, TopRight, BottomLeft, BottomRight
Possible values: TopLeft, TopRight, BottomLeft, BottomRight
UngroupedMarkersLabel string optionalposition: namedpipeline: false
Label for the ungrouped markers overlay.
UseOnlyConfiguredBaseLayers bool optionalposition: namedpipeline: false
Use only configured base layers.

Outputs

HtmlForgeX.LeafletMap