HtmlForgeX

API Reference

Class

MapboxMapSettings

Namespace HtmlForgeX
Assembly HtmlForgeX

Settings sub‑builder for MapboxMap to keep the root surface tidy.

Inheritance

  • Object
  • MapboxMapSettings

Methods

public MapboxMapSettings AccessibilityStyles(String highContrastStyleUrl, String colorBlindStyleUrl, String combinedStyleUrl = null) #
Returns: MapboxMapSettings

Overrides accessibility styles using custom Mapbox style URLs.

Parameters

highContrastStyleUrl System.String requiredposition: 0
colorBlindStyleUrl System.String requiredposition: 1
combinedStyleUrl System.String = null optionalposition: 2
public MapboxMapSettings Center(Double latitude, Double longitude) #
Returns: MapboxMapSettings

Sets center lat/lng.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
public MapboxMap End() #
Returns: MapboxMap

Return to root.

public MapboxMapSettings FollowAccessibility(Boolean follow = true) #
Returns: MapboxMapSettings

Explicitly enables/disables accessibility style following.

Parameters

follow System.Boolean = true optionalposition: 0
public MapboxMapSettings FollowTheme(Boolean follow = true) #
Returns: MapboxMapSettings

Explicitly enables/disables theme following (requires String)).

Parameters

follow System.Boolean = true optionalposition: 0
public MapboxMapSettings GlowMarker(Double latitude, Double longitude, String color = null, Nullable<Double> sizePx = null, Nullable<Double> glowSizePx = null) #
Returns: MapboxMapSettings

Adds a glowing marker at given coordinates with optional color and sizing.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
color System.String = null optionalposition: 2
sizePx System.Nullable{System.Double} = null optionalposition: 3
glowSizePx System.Nullable{System.Double} = null optionalposition: 4
public MapboxMapSettings Height(String height) #
Returns: MapboxMapSettings

Sets container height (e.g., "420px").

Parameters

height System.String requiredposition: 0
public MapboxMapSettings LazyInit(Boolean enabled = true) #
Returns: MapboxMapSettings

Controls whether initialization is deferred until the map becomes visible.

Parameters

enabled System.Boolean = true optionalposition: 0
public MapboxMapSettings Marker(Double latitude, Double longitude, String color = null) #
Returns: MapboxMapSettings

Adds a marker at given coordinates with optional color.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
color System.String = null optionalposition: 2
public MapboxMapSettings OverlayIntensity(Double opacity) #
Returns: MapboxMapSettings

Sets overlay intensity (0..1) for grid/vignette overlays.

Parameters

opacity System.Double requiredposition: 0
public MapboxMapSettings OverlayStyle(MapboxOverlayStyle style) #
Returns: MapboxMapSettings

Applies an overlay style preset (grid/vignette).

Parameters

style HtmlForgeX.MapboxOverlayStyle requiredposition: 0
public MapboxMapSettings PulseMarker(Double latitude, Double longitude, String color = null, Nullable<Double> sizePx = null, Nullable<Double> pulseSizePx = null, Nullable<Double> speedSeconds = null) #
Returns: MapboxMapSettings

Adds a pulsing marker at given coordinates with optional color and sizing.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
color System.String = null optionalposition: 2
sizePx System.Nullable{System.Double} = null optionalposition: 3
pulseSizePx System.Nullable{System.Double} = null optionalposition: 4
speedSeconds System.Nullable{System.Double} = null optionalposition: 5
Style 2 overloads
public MapboxMapSettings Style(MapboxStyle style) #
Returns: MapboxMapSettings

Sets Mapbox style URL (e.g., mapbox://styles/mapbox/streets-v11).

Parameters

styleUrl System.String requiredposition: 0
Style(HtmlForgeX.MapboxStyle style) #

Sets Mapbox style using a typed preset.

Parameters

style HtmlForgeX.MapboxStyle required
ThemeStyles 2 overloads
public MapboxMapSettings ThemeStyles(MapboxStyle lightStyle, MapboxStyle darkStyle) #
Returns: MapboxMapSettings

Enables theme-aware style switching for System (live update on theme changes).

Parameters

lightStyleUrl System.String requiredposition: 0
darkStyleUrl System.String requiredposition: 1
ThemeStyles(HtmlForgeX.MapboxStyle lightStyle, HtmlForgeX.MapboxStyle darkStyle) #

Enables theme-aware style switching for System (live update on theme changes).

Parameters

lightStyle HtmlForgeX.MapboxStyle required
darkStyle HtmlForgeX.MapboxStyle required
public MapboxMapSettings Zoom(Double zoom) #
Returns: MapboxMapSettings

Sets initial zoom level.

Parameters

zoom System.Double requiredposition: 0