HtmlForgeX

API Reference

Class

MapboxMap

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element

Typed Mapbox GL map component. Renders a full-featured map without requiring raw JS/CSS from the user. Loads Mapbox GL as a separate library only when used.

Inheritance

Constructors

public MapboxMap() #

Create a new Mapbox map.

Methods

AddGlowMarker(System.Double arg1, System.Double arg2, System.String arg3, System.Nullable{System.Double} arg4, System.Nullable{System.Double} arg5) #

Adds a glow marker (soft halo).

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.String required
arg4 System.Nullable{System.Double} required
arg5 System.Nullable{System.Double} required
AddMarker(System.Double arg1, System.Double arg2, System.String arg3) #

Adds a colored marker.

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.String required
AddPulseMarker(System.Double arg1, System.Double arg2, System.String arg3, System.Nullable{System.Double} arg4, System.Nullable{System.Double} arg5, System.Nullable{System.Double} arg6) #

Adds a pulsing marker (animated ring).

Parameters

arg1 System.Double required
arg2 System.Double required
arg3 System.String required
arg4 System.Nullable{System.Double} required
arg5 System.Nullable{System.Double} required
arg6 System.Nullable{System.Double} required
RegisterLibraries() #
SetCenter(System.Double arg1, System.Double arg2) #

Sets map center.

Parameters

arg1 System.Double required
arg2 System.Double required
SetHeight(System.String arg1) #

Sets container height.

Parameters

arg1 System.String required
SetStyle(System.String arg1) #

Sets Mapbox style URL.

Parameters

arg1 System.String required
public MapboxMap Settings(Action<MapboxMapSettings> configure) #
Returns: MapboxMap

Less-common options grouped under a sub‑builder.

Parameters

configure System.Action{HtmlForgeX.MapboxMapSettings} requiredposition: 0
SetZoom(System.Double arg1) #

Sets initial zoom.

Parameters

arg1 System.Double required
public override String ToString() #
Returns: String

Properties

public String Id { get; } #

Unique container id.

public String AccessToken { get; set; } #

Mapbox access token. Must be provided.

public List<ValueTuple<Double, Double, String>> Markers { get; } #

Optional colored markers.