HtmlForgeX

API Reference

Command

New-HtmlXLeafletTileProvider

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.LeafletTileProvider

Creates a Leaflet tile provider definition.

Remarks

Use with New-HtmlXLeafletBaseLayer or New-HtmlXLeafletThemeTiles.

Examples

Authored help example

Example 1: Create a provider from a preset.


$osm = New-HtmlXLeafletTileProvider -Preset OpenStreetMap
        

Example 2: Create a custom provider.


$custom = New-HtmlXLeafletTileProvider -UrlTemplate "https://tiles.example.com/{z}/{x}/{y}.png" -Attribution "© Example"
        

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-HtmlXLeafletTileProvider [-Attribution <string>] [-MaxZoom <int>] [-MinZoom <int>] [-Preset <OpenStreetMap>] [-UrlTemplate <string>] [<CommonParameters>]
#

Parameters

Attribution string optionalposition: namedpipeline: false
Attribution HTML required by the provider.
MaxZoom int optionalposition: namedpipeline: false
Optional maximum zoom.
MinZoom int optionalposition: namedpipeline: false
Optional minimum zoom.
Preset LeafletTileProviderPreset optionalposition: namedpipeline: falsevalues: 36
Built-in provider preset. Possible values: OpenStreetMap, EsriWorldImagery, EsriWorldStreetMap, EsriWorldTopoMap, EsriWorldLightGrayBase, EsriWorldDarkGrayBase, EsriNatGeoWorldMap, EsriWorldTerrainBase, EsriWorldHillshade, EsriWorldHillshadeDark, EsriWorldShadedRelief, OpenTopoMap, CartoPositron, CartoPositronNoLabels, CartoPositronOnlyLabels, CartoDarkMatter, CartoDarkMatterNoLabels, CartoDarkMatterOnlyLabels, CartoVoyager, CartoVoyagerNoLabels, CartoVoyagerOnlyLabels, CartoVoyagerLabelsUnder, StadiaAlidadeSmooth, StadiaAlidadeSmoothDark, StadiaOutdoors, StamenToner, StamenTonerLite, StamenTonerDark, StamenTonerBackground, StamenTonerLines, StamenTonerLabels, StamenTerrain, StamenTerrainBackground, StamenTerrainLines, StamenTerrainLabels, StamenWatercolor
Possible values: OpenStreetMap, EsriWorldImagery, EsriWorldStreetMap, EsriWorldTopoMap, EsriWorldLightGrayBase, EsriWorldDarkGrayBase, EsriNatGeoWorldMap, EsriWorldTerrainBase, EsriWorldHillshade, EsriWorldHillshadeDark, EsriWorldShadedRelief, OpenTopoMap, CartoPositron, CartoPositronNoLabels, CartoPositronOnlyLabels, CartoDarkMatter, CartoDarkMatterNoLabels, CartoDarkMatterOnlyLabels, CartoVoyager, CartoVoyagerNoLabels, CartoVoyagerOnlyLabels, CartoVoyagerLabelsUnder, StadiaAlidadeSmooth, StadiaAlidadeSmoothDark, StadiaOutdoors, StamenToner, StamenTonerLite, StamenTonerDark, StamenTonerBackground, StamenTonerLines, StamenTonerLabels, StamenTerrain, StamenTerrainBackground, StamenTerrainLines, StamenTerrainLabels, StamenWatercolor
UrlTemplate string optionalposition: namedpipeline: false
Tile URL template (e.g., "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").

Outputs

HtmlForgeX.LeafletTileProvider