Command
New-MapLegendSlice
Creates a new map legend slice.
Syntax
New-MapLegendSlice
[[-DisplayInLegend] <Nullable`1>]
[[-FillColor] <String>]
[[-HoverFillColor] <String>]
[[-HoverStrokeWidth] <Nullable`1>]
[[-HoverTransform] <String>]
[[-InitializeClicked] <Nullable`1>]
[[-Label] <String>]
[[-MaximumValue] <Nullable`1>]
[[-MinimumValue] <Nullable`1>]
[[-Size] <Nullable`1>]
[[-StrokeWidth] <Nullable`1>]
[[-Transform] <String>]
[-Type] <area| plot>
[[-Value] <Nullable`1>]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
This function creates a new map legend slice with specified parameters.
Examples
Example 1
New-MapLegendSlice -Label "Slice 1" -FillColor "Blue" -MinimumValue 0 -MaximumValue 100 -DisplayInLegend $trueParameters
- -DisplayInLegend Nullable<T>
- Specifies whether to display the slice in the legend. Default is true.
- -FillColor String
- The color to fill the slice with.
- -HoverFillColor String
- -HoverStrokeWidth Nullable<T>
- -HoverTransform String
- -InitializeClicked Nullable<T>
- Set to true to initialize the legend item in the 'clicked' state on map load. Default is false.
- -Label String
- The label of the slice for the legend.
- -MaximumValue Nullable<T>
- The maximum value for the interval defining the slice.
- -MinimumValue Nullable<T>
- The minimum value for the interval defining the slice.
- -Size Nullable<T>
- -StrokeWidth Nullable<T>
- -Transform String
- -Type Object
- Possible values:
area,plot - -Value Nullable<T>
- The fixed value for the slice. Use this instead of 'MinimumValue' and 'MaximumValue' to set a specific value.
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.