API Reference
LeafletLayerControlSettings
Settings sub-builder for Leaflet layer control (base layers + overlay toggles).
Inheritance
- Object
- LeafletLayerControlSettings
Methods
public LeafletLayerControlSettings BaseLayer(String name, LeafletTileProvider provider, Boolean selected = false) #LeafletLayerControlSettingsAdds an additional base tile layer to the control (radio selection). When any base layers are configured, HtmlForgeX will include the current map tile provider as the default base layer unless Boolean) is enabled.
Parameters
- name System.String
- provider HtmlForgeX.LeafletTileProvider
- selected System.Boolean = false
public LeafletLayerControlSettings BaseLayer(String name, String urlTemplate, String attribution, Boolean selected = false) #LeafletLayerControlSettingsAdds an additional base tile layer to the control (radio selection).
Parameters
- name System.String
- urlTemplate System.String
- attribution System.String
- selected System.Boolean = false
public LeafletLayerControlSettings Collapsed(Boolean collapsed = true) #LeafletLayerControlSettingsSets whether the layer control is collapsed by default.
Parameters
- collapsed System.Boolean = true
public LeafletLayerControlSettings DefaultBaseLayerName(String name) #LeafletLayerControlSettingsSets the display name for the current map tile provider when it is included as the default base layer.
Parameters
- name System.String
public LeafletLayerControlSettings Group(String groupName, Action<LeafletLayerGroupSettings> configure) #LeafletLayerControlSettingsConfigures ordering/label/initial visibility for an overlay group name.
Parameters
- groupName System.String
- configure System.Action{HtmlForgeX.LeafletLayerGroupSettings}
public LeafletLayerControlSettings IncludeUngroupedMarkers(Boolean include = true, String label = "Markers") #LeafletLayerControlSettingsConfigures whether ungrouped markers should appear as a toggleable overlay.
Parameters
- include System.Boolean = true
- label System.String = "Markers"
public LeafletLayerControlSettings Position(LeafletControlPosition position) #LeafletLayerControlSettingsSets control position (defaults to TopRight).
Parameters
- position HtmlForgeX.LeafletControlPosition
public LeafletLayerControlSettings UseOnlyConfiguredBaseLayers(Boolean enable = true) #LeafletLayerControlSettingsWhen enabled, the base layers list will contain only the layers explicitly configured via Boolean).
Parameters
- enable System.Boolean = true