HtmlForgeX

API Reference

Command

New-HtmlXLeafletBaseLayer

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.LeafletMap

Adds a base layer entry to the Leaflet layer control.

Remarks

Use inside New-HtmlXLeafletMap { }.

Examples

Imported script example

New-HtmlXLeafletBaseLayer -Name "OpenStreetMap" -Provider $osm -Selected
        

New-HtmlXLeafletBaseLayer -Name "Dark Matter" -Provider $dark
        

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-HtmlXLeafletBaseLayer [-Attribution <string>] [-Name <string>] [-Provider <LeafletTileProvider>] [-Selected] [-UrlTemplate <string>] [<CommonParameters>]
#

Parameters

Attribution string optionalposition: namedpipeline: false
Tile attribution HTML (when not using a provider instance).
Name string optionalposition: namedpipeline: false
Display name of the base layer.
Provider LeafletTileProvider optionalposition: namedpipeline: false
Tile provider instance.
Selected SwitchParameter optionalposition: namedpipeline: false
Marks this base layer as selected.
UrlTemplate string optionalposition: namedpipeline: false
Tile URL template (when not using a provider instance).

Outputs

HtmlForgeX.LeafletMap