API Reference
Command
New-HtmlXLeafletLegend
Enables and configures a Leaflet legend control.
Remarks
Use inside New-HtmlXLeafletMap { }.
Examples
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
- Clears existing legend items.
- Position LeafletControlPosition
- Legend position. Possible values: TopLeft, TopRight, BottomLeft, BottomRight
- Possible values:
TopLeft,TopRight,BottomLeft,BottomRight - Title string
- Legend title.
Outputs
HtmlForgeX.LeafletMap