API Reference
LeafletMapSettings
Settings sub‑builder for LeafletMap to keep the root surface tidy.
Inheritance
- Object
- LeafletMapSettings
Methods
public LeafletMapSettings Center(Double latitude, Double longitude) #LeafletMapSettingsSets center lat/lng.
Parameters
- latitude System.Double
- longitude System.Double
public LeafletMapSettings DoubleClickZoom(Boolean enable) #LeafletMapSettingsEnable/disable double click zoom.
Parameters
- enable System.Boolean
public LeafletMapSettings Dragging(Boolean enable) #LeafletMapSettingsEnable/disable dragging (panning).
Parameters
- enable System.Boolean
public LeafletMapSettings FitToContent(Int32 paddingPx = 24) #LeafletMapSettingsFits the map view to all overlays (markers, circles, polylines, polygons) after initialization.
Parameters
- paddingPx System.Int32 = 24
public LeafletMapSettings FitToMarkers(Int32 paddingPx = 24) #LeafletMapSettingsFits the map view to markers after initialization.
Parameters
- paddingPx System.Int32 = 24
public LeafletMapSettings GeoGroup(String groupId) #LeafletMapSettingsAssigns a selection group id for cross-component geo selection sync (Leaflet/Globe/VectorMap/DataTables). Use different values when multiple dashboards exist on the same page.
Parameters
- groupId System.String
public LeafletMapSettings GeoJson(String geoJson, String tooltipProperty = "tooltip", String popupProperty = "popup") #LeafletMapSettingsAdds a GeoJSON overlay layer.
Parameters
- geoJson System.String
- tooltipProperty System.String = "tooltip"
- popupProperty System.String = "popup"
public LeafletMapSettings GeoSelectionTableMode(GeoSelectionTableMode mode) #LeafletMapSettingsControls how geo selection events affect DataTables filtering across widgets in the same GeoGroup. Use SourceOnly to prevent cascaded/duplicate filtering when multiple widgets bind to the same tables.
Parameters
- mode HtmlForgeX.GeoSelectionTableMode
public LeafletMapSettings Heatmap(Action<LeafletHeatmapSettings> configure = null) #LeafletMapSettingsEnables a heatmap overlay (density layer). Requires the optional heatmap plugin library.
Parameters
- configure System.Action{HtmlForgeX.LeafletHeatmapSettings} = null
public LeafletMapSettings Height(String height) #LeafletMapSettingsSets container height (e.g., "350px").
Parameters
- height System.String
public LeafletMapSettings LayerControl(Action<LeafletLayerControlSettings> configure = null) #LeafletMapSettingsEnables the Leaflet layer control (base layers + overlay toggles).
Parameters
- configure System.Action{HtmlForgeX.LeafletLayerControlSettings} = null
public LeafletMapSettings LazyInit(Boolean enabled = true) #LeafletMapSettingsControls whether the map initializes only when it becomes visible.
Parameters
- enabled System.Boolean = true
public LeafletMapSettings Legend(Action<LeafletLegendSettings> configure = null) #LeafletMapSettingsAdds a small legend control (swatches + labels) to the map.
Parameters
- configure System.Action{HtmlForgeX.LeafletLegendSettings} = null
public LeafletMapSettings MarkerClustering(Action<LeafletMarkerClusteringSettings> configure = null) #LeafletMapSettingsEnables marker clustering (useful for large marker sets).
Parameters
- configure System.Action{HtmlForgeX.LeafletMarkerClusteringSettings} = null
public LeafletMapSettings ScrollWheelZoom(Boolean enable) #LeafletMapSettingsEnable/disable scroll wheel zoom.
Parameters
- enable System.Boolean
public LeafletMapSettings SituationSweep(Boolean enable = true, Nullable<Double> speedSeconds = null) #LeafletMapSettingsEnables the situation-monitor sweep overlay (best with Situation).
Parameters
- enable System.Boolean = true
- speedSeconds System.Nullable{System.Double} = null
public LeafletMapSettings SituationSweepArcWidth(Double degrees) #LeafletMapSettingsSets the sweep arc width in degrees (best with Situation).
Parameters
- degrees System.Double
public LeafletMapSettings SituationSweepStyle(String color, Nullable<Double> opacity = null) #LeafletMapSettingsEditorBrowsable(2)Sets the sweep overlay color and opacity (best with Situation).
Parameters
- color HtmlForgeX.TablerColor
- opacity System.Nullable{System.Double} = null
SituationSweepStyle(HtmlForgeX.RGBColor color, System.Nullable{System.Double} opacity) #Sets the sweep overlay color and opacity (best with Situation).
Parameters
- color HtmlForgeX.RGBColor
- opacity System.Nullable{System.Double}
SituationSweepStyle(System.String color, System.Nullable{System.Double} opacity) #Sets the sweep overlay color and opacity using a custom CSS color string.
Parameters
- color System.String
- opacity System.Nullable{System.Double}
public LeafletMapSettings Style(LeafletMapStyle style) #LeafletMapSettingsApplies a visual style preset.
Parameters
- style HtmlForgeX.LeafletMapStyle
public LeafletMapSettings ThemeTiles(LeafletTileProvider light, LeafletTileProvider dark, String lightName = "Light", String darkName = "Dark", Boolean followThemeChanges = true) #LeafletMapSettingsConfigures light/dark tile providers and automatically switches them when the page theme changes.
Parameters
- light HtmlForgeX.LeafletTileProvider
- dark HtmlForgeX.LeafletTileProvider
- lightName System.String = "Light"
- darkName System.String = "Dark"
- followThemeChanges System.Boolean = true
public LeafletMapSettings TileProvider(LeafletTileProvider provider) #LeafletMapSettingsSets the tile provider.
Parameters
- provider HtmlForgeX.LeafletTileProvider
public LeafletMapSettings Zoom(Int32 zoom) #LeafletMapSettingsSets initial zoom level.
Parameters
- zoom System.Int32
public LeafletMapSettings ZoomControl(Boolean enable) #LeafletMapSettingsShow/hide zoom control UI.
Parameters
- enable System.Boolean