API Reference
Command
New-HtmlXMapboxMap
Creates a Mapbox GL map container.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
New-HtmlXMapboxMap -Height "320px" {
New-HtmlXMapboxMap -AccessToken $env:MAPBOX_TOKEN -Height "360px" -CenterLatitude 37.0902 -CenterLongitude -95.7129 -Zoom 3 {
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-HtmlXMapboxMap [-Content <ScriptBlock>] [-AccessToken <string>] [-CenterLatitude <double>] [-CenterLongitude <double>] [-Height <string>] [-LazyInit <bool>] [-OverlayIntensity <double>] [-OverlayStyle <Default|Situation>] [-Style <Streets>] [-StyleUrl <string>] [-Zoom <double>] [<CommonParameters>]#Parameters
- Content ScriptBlock
- Scriptblock that adds markers.
- AccessToken string
- Mapbox access token.
- CenterLatitude double
- Center latitude.
- CenterLongitude double
- Center longitude.
- Height string
- Map height (e.g., "420px").
- LazyInit bool
- Enable or disable lazy initialization.
- OverlayIntensity double
- Overlay intensity (0..1).
- OverlayStyle MapboxOverlayStyle
- Overlay style preset. Possible values: Default, Situation
- Possible values:
Default,Situation - Style MapboxStyle
- Mapbox style preset. Possible values: Streets, Outdoors, Light, Dark, Satellite, SatelliteStreets, NavigationDay, NavigationNight
- Possible values:
Streets,Outdoors,Light,Dark,Satellite,SatelliteStreets,NavigationDay,NavigationNight - StyleUrl string
- Mapbox style URL override.
- Zoom double
- Initial zoom level.
Outputs
HtmlForgeX.MapboxMap