HtmlForgeX

API Reference

Class

LeafletMap

Namespace HtmlForgeX
Assembly HtmlForgeX
Base Element
Modifiers sealed

Leaflet-based interactive tile map component.

Inheritance

Constructors

public LeafletMap() #

Create a new Leaflet map.

Methods

AddCircle 3 overloads
public LeafletMap AddCircle(Double latitude, Double longitude, Double radiusMeters, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap

Adds a circle overlay (radius in meters).

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
radiusMeters System.Double requiredposition: 2
tooltip System.String = null optionalposition: 3
popup System.String = null optionalposition: 4
group System.String = null optionalposition: 5
public LeafletMap AddCircle(Double latitude, Double longitude, Double radiusMeters, RGBColor color, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap

Adds a colored circle overlay (radius in meters).

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
radiusMeters System.Double requiredposition: 2
color HtmlForgeX.TablerColor requiredposition: 3
tooltip System.String = null optionalposition: 4
popup System.String = null optionalposition: 5
group System.String = null optionalposition: 6
AddCircle(System.Double latitude, System.Double longitude, System.Double radiusMeters, HtmlForgeX.RGBColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored circle overlay (radius in meters).

Parameters

latitude System.Double required
longitude System.Double required
radiusMeters System.Double required
color HtmlForgeX.RGBColor required
tooltip System.String required
popup System.String required
group System.String required
public LeafletMap AddCircleHex(Double latitude, Double longitude, Double radiusMeters, String colorHex, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap
EditorBrowsable(2)

Adds a colored circle overlay with a custom hex color (radius in meters).

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
radiusMeters System.Double requiredposition: 2
colorHex System.String requiredposition: 3
tooltip System.String = null optionalposition: 4
popup System.String = null optionalposition: 5
group System.String = null optionalposition: 6
AddGeoJson 3 overloads
public LeafletMap AddGeoJson(String geoJson, String tooltipProperty = "tooltip", String popupProperty = "popup", String group = null) #
Returns: LeafletMap

Adds a GeoJSON overlay layer (FeatureCollection/Feature/Geometry).

Parameters

geoJson System.String requiredposition: 0
tooltipProperty System.String = "tooltip" optionalposition: 1
popupProperty System.String = "popup" optionalposition: 2
group System.String = null optionalposition: 3
public LeafletMap AddGeoJson(String geoJson, RGBColor color, String tooltipProperty = "tooltip", String popupProperty = "popup", String group = null) #
Returns: LeafletMap

Adds a styled GeoJSON overlay layer (FeatureCollection/Feature/Geometry).

Parameters

geoJson System.String requiredposition: 0
color HtmlForgeX.TablerColor requiredposition: 1
tooltipProperty System.String = "tooltip" optionalposition: 2
popupProperty System.String = "popup" optionalposition: 3
group System.String = null optionalposition: 4
AddGeoJson(System.String geoJson, HtmlForgeX.RGBColor color, System.String tooltipProperty, System.String popupProperty, System.String group) #

Adds a styled GeoJSON overlay layer (FeatureCollection/Feature/Geometry).

Parameters

geoJson System.String required
color HtmlForgeX.RGBColor required
tooltipProperty System.String required
popupProperty System.String required
group System.String required
public LeafletMap AddGeoJsonHex(String geoJson, String colorHex, String tooltipProperty = "tooltip", String popupProperty = "popup", String group = null) #
Returns: LeafletMap
EditorBrowsable(2)

Adds a styled GeoJSON overlay layer with a custom hex color (FeatureCollection/Feature/Geometry).

Parameters

geoJson System.String requiredposition: 0
colorHex System.String requiredposition: 1
tooltipProperty System.String = "tooltip" optionalposition: 2
popupProperty System.String = "popup" optionalposition: 3
group System.String = null optionalposition: 4
AddMarker 3 overloads
public LeafletMap AddMarker(Double latitude, Double longitude, String tooltip = null, String popup = null) #
Returns: LeafletMap

Adds a marker with an optional tooltip.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
tooltip System.String = null optionalposition: 2
popup System.String = null optionalposition: 3
public LeafletMap AddMarker(Double latitude, Double longitude, RGBColor color, String tooltip = null, String popup = null) #
Returns: LeafletMap

Adds a colored marker (renders as a circle marker for theme-friendly coloring).

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
color HtmlForgeX.TablerColor requiredposition: 2
tooltip System.String = null optionalposition: 3
popup System.String = null optionalposition: 4
AddMarker(System.Double latitude, System.Double longitude, HtmlForgeX.RGBColor color, System.String tooltip, System.String popup) #

Adds a colored marker (renders as a circle marker for theme-friendly coloring).

Parameters

latitude System.Double required
longitude System.Double required
color HtmlForgeX.RGBColor required
tooltip System.String required
popup System.String required
public LeafletMap AddMarkerHex(Double latitude, Double longitude, String colorHex, String tooltip = null, String popup = null) #
Returns: LeafletMap
EditorBrowsable(2)

Adds a colored marker with a custom hex color.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
colorHex System.String requiredposition: 2
tooltip System.String = null optionalposition: 3
popup System.String = null optionalposition: 4
AddPolygon 6 overloads
public LeafletMap AddPolygon(IEnumerable<GeoPoint> points, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap

Adds a polygon overlay.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
tooltip System.String = null optionalposition: 1
popup System.String = null optionalposition: 2
group System.String = null optionalposition: 3
public LeafletMap AddPolygon(IEnumerable<GeoPoint> points, RGBColor color, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap

Adds a colored polygon overlay.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
color HtmlForgeX.TablerColor requiredposition: 1
tooltip System.String = null optionalposition: 2
popup System.String = null optionalposition: 3
group System.String = null optionalposition: 4
AddPolygon(System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} points, HtmlForgeX.RGBColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored polygon overlay.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} required
color HtmlForgeX.RGBColor required
tooltip System.String required
popup System.String required
group System.String required
AddPolygon(System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} points, System.String tooltip, System.String popup, System.String group) #

Adds a polygon overlay from typed geo points.

Parameters

points System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} required
tooltip System.String required
popup System.String required
group System.String required
AddPolygon(System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} points, HtmlForgeX.TablerColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored polygon overlay from typed geo points.

Parameters

points System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} required
color HtmlForgeX.TablerColor required
tooltip System.String required
popup System.String required
group System.String required
AddPolygon(System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} points, HtmlForgeX.RGBColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored polygon overlay from typed geo points.

Parameters

points System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} required
color HtmlForgeX.RGBColor required
tooltip System.String required
popup System.String required
group System.String required
public LeafletMap AddPolygonHex(IEnumerable<ValueTuple<Double, Double>> points, String colorHex, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap
EditorBrowsable(2)

Adds a colored polygon overlay with a custom hex color.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
colorHex System.String requiredposition: 1
tooltip System.String = null optionalposition: 2
popup System.String = null optionalposition: 3
group System.String = null optionalposition: 4
AddPolyline 6 overloads
public LeafletMap AddPolyline(IEnumerable<GeoPoint> points, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap

Adds a polyline overlay.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
tooltip System.String = null optionalposition: 1
popup System.String = null optionalposition: 2
group System.String = null optionalposition: 3
public LeafletMap AddPolyline(IEnumerable<GeoPoint> points, RGBColor color, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap

Adds a colored polyline overlay.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
color HtmlForgeX.TablerColor requiredposition: 1
tooltip System.String = null optionalposition: 2
popup System.String = null optionalposition: 3
group System.String = null optionalposition: 4
AddPolyline(System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} points, HtmlForgeX.RGBColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored polyline overlay.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} required
color HtmlForgeX.RGBColor required
tooltip System.String required
popup System.String required
group System.String required
AddPolyline(System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} points, System.String tooltip, System.String popup, System.String group) #

Adds a polyline overlay from typed geo points.

Parameters

points System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} required
tooltip System.String required
popup System.String required
group System.String required
AddPolyline(System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} points, HtmlForgeX.TablerColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored polyline overlay from typed geo points.

Parameters

points System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} required
color HtmlForgeX.TablerColor required
tooltip System.String required
popup System.String required
group System.String required
AddPolyline(System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} points, HtmlForgeX.RGBColor color, System.String tooltip, System.String popup, System.String group) #

Adds a colored polyline overlay from typed geo points.

Parameters

points System.Collections.Generic.IEnumerable{HtmlForgeX.GeoPoint} required
color HtmlForgeX.RGBColor required
tooltip System.String required
popup System.String required
group System.String required
public LeafletMap AddPolylineHex(IEnumerable<ValueTuple<Double, Double>> points, String colorHex, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletMap
EditorBrowsable(2)

Adds a colored polyline overlay with a custom hex color.

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
colorHex System.String requiredposition: 1
tooltip System.String = null optionalposition: 2
popup System.String = null optionalposition: 3
group System.String = null optionalposition: 4
public LeafletMap Center(Double latitude, Double longitude) #
Returns: LeafletMap

Sets the map center.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
public LeafletMarker Marker(Double latitude, Double longitude, String tooltip = null, String popup = null) #
Returns: LeafletMarker

Adds a marker and returns a fluent marker builder for advanced configuration.

Parameters

latitude System.Double requiredposition: 0
longitude System.Double requiredposition: 1
tooltip System.String = null optionalposition: 2
popup System.String = null optionalposition: 3
public LeafletPolyline Polyline(IEnumerable<ValueTuple<Double, Double>> points, String tooltip = null, String popup = null, String group = null) #
Returns: LeafletPolyline

Adds a polyline overlay and returns a fluent builder for advanced configuration (routes, styling, etc.).

Parameters

points System.Collections.Generic.IEnumerable{System.ValueTuple{System.Double,System.Double}} requiredposition: 0
tooltip System.String = null optionalposition: 1
popup System.String = null optionalposition: 2
group System.String = null optionalposition: 3
RegisterLibraries() #
public LeafletMap Settings(Action<LeafletMapSettings> configure) #
Returns: LeafletMap

Groups less-common options under a single fluent entry point.

Parameters

configure System.Action{HtmlForgeX.LeafletMapSettings} requiredposition: 0
public LeafletMap TileProvider(LeafletTileProvider provider) #
Returns: LeafletMap

Sets the tile provider (defaults to OpenStreetMap).

Parameters

provider HtmlForgeX.LeafletTileProvider requiredposition: 0
public override String ToString() #
Returns: String
public LeafletMap Zoom(Int32 zoom) #
Returns: LeafletMap

Sets the initial zoom level.

Parameters

zoom System.Int32 requiredposition: 0

Properties

public String Id { get; } #

Unique id for the map container.