API Reference
Command
New-HtmlXLeafletLayerControl
Enables and configures the Leaflet layer control.
Remarks
Use inside New-HtmlXLeafletMap { }.
Examples
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
- Whether the control is collapsed by default.
- DefaultBaseLayerName string
- Display name for the default base layer.
- IncludeUngroupedMarkers bool
- Include ungrouped markers as an overlay toggle.
- Position LeafletControlPosition
- Control position. Possible values: TopLeft, TopRight, BottomLeft, BottomRight
- Possible values:
TopLeft,TopRight,BottomLeft,BottomRight - UngroupedMarkersLabel string
- Label for the ungrouped markers overlay.
- UseOnlyConfiguredBaseLayers bool
- Use only configured base layers.
Outputs
HtmlForgeX.LeafletMap