HtmlForgeX

API Reference

Command

New-HtmlXLeafletLegend

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.LeafletMap

Enables and configures a Leaflet legend control.

Remarks

Use inside New-HtmlXLeafletMap { }.

Examples

Imported script example

New-HtmlXLeafletLegend -Title "Heat Density" -Position BottomRight
        

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-HtmlXLeafletLegend [-Clear] [-Position <TopLeft|TopRight|BottomLeft|BottomRight>] [-Title <string>] [<CommonParameters>]
#

Parameters

Clear SwitchParameter optionalposition: namedpipeline: false
Clears existing legend items.
Position LeafletControlPosition optionalposition: namedpipeline: falsevalues: 4
Legend position. Possible values: TopLeft, TopRight, BottomLeft, BottomRight
Possible values: TopLeft, TopRight, BottomLeft, BottomRight
Title string optionalposition: namedpipeline: false
Legend title.

Outputs

HtmlForgeX.LeafletMap