API Reference
Command
New-HtmlXLeafletTileProvider
Creates a Leaflet tile provider definition.
Remarks
Use with New-HtmlXLeafletBaseLayer or New-HtmlXLeafletThemeTiles.
Examples
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
- Attribution HTML required by the provider.
- MaxZoom int
- Optional maximum zoom.
- MinZoom int
- Optional minimum zoom.
- Preset LeafletTileProviderPreset
- 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
- Tile URL template (e.g., "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png").
Outputs
HtmlForgeX.LeafletTileProvider