API Reference
LeafletMarker
Fluent marker builder for LeafletMap.
Inheritance
- Object
- LeafletMarker
Methods
public LeafletMarker CircleMarker(Boolean enable = true) #LeafletMarkerEditorBrowsable(2)Force circle marker rendering (even without setting a color).
Parameters
- enable System.Boolean = true
public LeafletMarker ColorHex(String colorHex) #LeafletMarkerEditorBrowsable(2)Sets marker color using a custom hex value.
Parameters
- colorHex System.String
public LeafletMarker FillOpacity(Double fillOpacity) #LeafletMarkerEditorBrowsable(2)Circle marker fill opacity (only applies to circle markers).
Parameters
- fillOpacity System.Double
public LeafletMarker Glow(Boolean enable = true) #LeafletMarkerEnables a glow effect for the marker.
Parameters
- enable System.Boolean = true
public LeafletMarker GlowSize(Double sizePx) #LeafletMarkerEditorBrowsable(2)Sets the glow size in pixels (for glow markers).
Parameters
- sizePx System.Double
public LeafletMarker Group(String groupName) #LeafletMarkerAssigns the marker to an overlay group (used by the layer control).
Parameters
- groupName System.String
public LeafletMarker Icon(TablerIconType icon, String label = null, Boolean showLabel = true) #LeafletMarkerConvenience helper that renders a Tabler icon marker as an HTML overlay (no custom JS required).
Parameters
- icon HtmlForgeX.TablerIconType
- label System.String = null
- showLabel System.Boolean = true
public LeafletMarker Key(String key) #LeafletMarkerEditorBrowsable(2)Sets a marker key used by client-side helpers (focus/open popup, etc.).
Parameters
- key System.String
public LeafletMarker Overlay(Action<ElementContainer> configure) #LeafletMarkerAttaches a typed HTML overlay to the marker via a <template>.
Parameters
- configure System.Action{HtmlForgeX.ElementContainer}
public LeafletMarker Popup(Action<ElementContainer> configure) #LeafletMarkerSets popup text for the marker.
Parameters
- popup System.String
Popup(System.Action{HtmlForgeX.ElementContainer} configure) #Attaches a typed HTML popup to the marker via a <template>.
Parameters
- configure System.Action{HtmlForgeX.ElementContainer}
public LeafletMarker Pulse(Boolean enable = true) #LeafletMarkerEnables a pulsing ring effect for the marker.
Parameters
- enable System.Boolean = true
public LeafletMarker PulseSize(Double sizePx) #LeafletMarkerEditorBrowsable(2)Sets the pulse ring size in pixels (for pulse markers).
Parameters
- sizePx System.Double
public LeafletMarker PulseSpeed(Double seconds) #LeafletMarkerEditorBrowsable(2)Sets the pulse animation speed in seconds (for pulse markers).
Parameters
- seconds System.Double
public LeafletMarker Radius(Double radius) #LeafletMarkerEditorBrowsable(2)Circle marker radius (only applies to circle markers).
Parameters
- radius System.Double
public LeafletMarker Size(Double sizePx) #LeafletMarkerEditorBrowsable(2)Sets the marker size in pixels (for glow/pulse markers).
Parameters
- sizePx System.Double
public LeafletMarker Tooltip(Action<ElementContainer> configure) #LeafletMarkerSets tooltip text for the marker.
Parameters
- tooltip System.String
Tooltip(System.Action{HtmlForgeX.ElementContainer} configure) #Attaches a typed HTML tooltip to the marker via a <template>.
Parameters
- configure System.Action{HtmlForgeX.ElementContainer}
public LeafletMarker Weight(Double weight) #LeafletMarkerEditorBrowsable(2)Circle marker stroke weight (only applies to circle markers).
Parameters
- weight System.Double