API Reference
Class
LeafletLegendSettings
Legend control settings for LeafletMap.
Inheritance
- Object
- LeafletLegendSettings
Methods
AddItem 2 overloads
public LeafletLegendSettings AddItem(String label, RGBColor color) #Returns:
LeafletLegendSettingsAdds a legend item (label + color).
Parameters
- label System.String
- color HtmlForgeX.TablerColor
AddItem(System.String label, HtmlForgeX.RGBColor color) #Adds a legend item (label + color).
Parameters
- label System.String
- color HtmlForgeX.RGBColor
public LeafletLegendSettings AddItemHex(String label, String colorHex) #Returns:
LeafletLegendSettingsEditorBrowsable(2)Adds a legend item using a custom hex color.
Parameters
- label System.String
- colorHex System.String
public LeafletLegendSettings Position(LeafletControlPosition position) #Returns:
LeafletLegendSettingsSets legend position.
Parameters
- position HtmlForgeX.LeafletControlPosition
public LeafletLegendSettings Title(String title) #Returns:
LeafletLegendSettingsSets legend title.
Parameters
- title System.String