New-HTMLMap
Creates a new HTML map with specified settings.
Syntax
New-HTMLMap [[-AnchorName] <String>] [[-AreaTitle] <String>] [[-FillColor] <String>] [-Map] <Poland|Usa_States|World_Countries|European_Union> [[-MapSettings] <ScriptBlock>] [[-PlotTitle] <String>] [-ShowAreaLegend] [-ShowPlotLegend] [[-StrokeColor] <String>] [[-StrokeWidth] <Nullable`1>] [<CommonParameters>]#All Parameter SetsDescription
This function creates a new HTML map with customizable settings such as map type, legend options, colors, and titles.
Examples
EXAMPLE 1
New-HTMLMap -Map 'World_Countries' -AnchorName 'Map1' -ShowAreaLegend -AreaTitle 'Country Population' -PlotTitle 'Population Density' -FillColor 'blue' -StrokeColor 'black' -StrokeWidth 2Creates a new HTML map displaying world countries with area legend showing country population and plot legend showing population density. The map areas are filled with blue color, have black borders, and a border width of 2.
EXAMPLE 2
$CustomSettings = {
# Custom map settings here
}
New-HTMLMap -Map 'Usa_States' -AnchorName 'Map2' -ShowPlotLegend -PlotTitle 'Economic Data' -FillColor 'green' -StrokeColor 'gray' -StrokeWidth 1 -MapSettings $CustomSettingsCreates a new HTML map displaying USA states with plot legend showing economic data. The map areas are filled with green color, have gray borders, and a border width of 1. Custom map settings are applied using the script block $CustomSettings.
Parameters
- -AnchorName String
- Specifies the name of the HTML anchor element where the map will be rendered.
- -AreaTitle String
- Specifies the title for the area legend.
- -FillColor String
- Specifies the color to fill the map areas.
- -Map String
- Specifies the type of map to be displayed. Valid values are 'Poland', 'Usa_States', 'World_Countries', or 'European_Union'.
- Possible values:
Poland,Usa_States,World_Countries,European_Union - -MapSettings ScriptBlock
- A script block containing custom map settings to be applied.
- -PlotTitle String
- Specifies the title for the plot legend.
- -ShowAreaLegend SwitchParameter
- Switch parameter to indicate whether to display the area legend on the map.
- -ShowPlotLegend SwitchParameter
- Switch parameter to indicate whether to display the plot legend on the map.
- -StrokeColor String
- Specifies the color of the map area borders.
- -StrokeWidth Nullable`1
- Specifies the width of the map area borders.
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.