HtmlForgeX

API Reference

Class

LeafletMarker

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Fluent marker builder for LeafletMap.

Inheritance

  • Object
  • LeafletMarker

Methods

public LeafletMarker CircleMarker(Boolean enable = true) #
Returns: LeafletMarker
EditorBrowsable(2)

Force circle marker rendering (even without setting a color).

Parameters

enable System.Boolean = true optionalposition: 0
Color 2 overloads
public LeafletMarker Color(RGBColor color) #
Returns: LeafletMarker

Sets marker color using a Tabler color.

Parameters

color HtmlForgeX.TablerColor requiredposition: 0
Color(HtmlForgeX.RGBColor color) #

Sets marker color using an RGB color.

Parameters

color HtmlForgeX.RGBColor required
public LeafletMarker ColorHex(String colorHex) #
Returns: LeafletMarker
EditorBrowsable(2)

Sets marker color using a custom hex value.

Parameters

colorHex System.String requiredposition: 0
public LeafletMap End() #
Returns: LeafletMap

Return to root.

public LeafletMarker FillOpacity(Double fillOpacity) #
Returns: LeafletMarker
EditorBrowsable(2)

Circle marker fill opacity (only applies to circle markers).

Parameters

fillOpacity System.Double requiredposition: 0
public LeafletMarker Glow(Boolean enable = true) #
Returns: LeafletMarker

Enables a glow effect for the marker.

Parameters

enable System.Boolean = true optionalposition: 0
public LeafletMarker GlowSize(Double sizePx) #
Returns: LeafletMarker
EditorBrowsable(2)

Sets the glow size in pixels (for glow markers).

Parameters

sizePx System.Double requiredposition: 0
public LeafletMarker Group(String groupName) #
Returns: LeafletMarker

Assigns the marker to an overlay group (used by the layer control).

Parameters

groupName System.String requiredposition: 0
public LeafletMarker Icon(TablerIconType icon, String label = null, Boolean showLabel = true) #
Returns: LeafletMarker

Convenience helper that renders a Tabler icon marker as an HTML overlay (no custom JS required).

Parameters

icon HtmlForgeX.TablerIconType requiredposition: 0
label System.String = null optionalposition: 1
showLabel System.Boolean = true optionalposition: 2
public LeafletMarker Key(String key) #
Returns: LeafletMarker
EditorBrowsable(2)

Sets a marker key used by client-side helpers (focus/open popup, etc.).

Parameters

key System.String requiredposition: 0
public LeafletMarker Overlay(Action<ElementContainer> configure) #
Returns: LeafletMarker

Attaches a typed HTML overlay to the marker via a <template>.

Parameters

configure System.Action{HtmlForgeX.ElementContainer} requiredposition: 0
Popup 2 overloads
public LeafletMarker Popup(Action<ElementContainer> configure) #
Returns: LeafletMarker

Sets popup text for the marker.

Parameters

popup System.String requiredposition: 0
Popup(System.Action{HtmlForgeX.ElementContainer} configure) #

Attaches a typed HTML popup to the marker via a <template>.

Parameters

configure System.Action{HtmlForgeX.ElementContainer} required
public LeafletMarker Pulse(Boolean enable = true) #
Returns: LeafletMarker

Enables a pulsing ring effect for the marker.

Parameters

enable System.Boolean = true optionalposition: 0
public LeafletMarker PulseSize(Double sizePx) #
Returns: LeafletMarker
EditorBrowsable(2)

Sets the pulse ring size in pixels (for pulse markers).

Parameters

sizePx System.Double requiredposition: 0
public LeafletMarker PulseSpeed(Double seconds) #
Returns: LeafletMarker
EditorBrowsable(2)

Sets the pulse animation speed in seconds (for pulse markers).

Parameters

seconds System.Double requiredposition: 0
public LeafletMarker Radius(Double radius) #
Returns: LeafletMarker
EditorBrowsable(2)

Circle marker radius (only applies to circle markers).

Parameters

radius System.Double requiredposition: 0
public LeafletMarker Size(Double sizePx) #
Returns: LeafletMarker
EditorBrowsable(2)

Sets the marker size in pixels (for glow/pulse markers).

Parameters

sizePx System.Double requiredposition: 0
Tooltip 2 overloads
public LeafletMarker Tooltip(Action<ElementContainer> configure) #
Returns: LeafletMarker

Sets tooltip text for the marker.

Parameters

tooltip System.String requiredposition: 0
Tooltip(System.Action{HtmlForgeX.ElementContainer} configure) #

Attaches a typed HTML tooltip to the marker via a <template>.

Parameters

configure System.Action{HtmlForgeX.ElementContainer} required
public LeafletMarker Weight(Double weight) #
Returns: LeafletMarker
EditorBrowsable(2)

Circle marker stroke weight (only applies to circle markers).

Parameters

weight System.Double requiredposition: 0