HtmlForgeX

API Reference

Class

LeafletPolyline

Namespace HtmlForgeX
Assembly HtmlForgeX
Modifiers sealed

Fluent polyline builder for LeafletMap.

Inheritance

  • Object
  • LeafletPolyline

Methods

public LeafletPolyline AnimateDash(Boolean enable = true) #
Returns: LeafletPolyline

Enables a simple animated dash effect (CSS-based, SVG renderer).

Parameters

enable System.Boolean = true optionalposition: 0
public LeafletPolyline ClassName(String className) #
Returns: LeafletPolyline
EditorBrowsable(2)

Adds a CSS class name to the rendered SVG path.

Parameters

className System.String requiredposition: 0
Color 2 overloads
public LeafletPolyline Color(RGBColor color) #
Returns: LeafletPolyline

Sets polyline color using a Tabler color.

Parameters

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

Sets polyline color using an RGB color.

Parameters

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

Sets polyline color using a custom hex value.

Parameters

colorHex System.String requiredposition: 0
public LeafletPolyline Dash(String dashArray, String dashOffset = null) #
Returns: LeafletPolyline

Sets a dash pattern for the polyline (e.g., "6 10").

Parameters

dashArray System.String requiredposition: 0
dashOffset System.String = null optionalposition: 1
public LeafletMap End() #
Returns: LeafletMap

Return to root.

public LeafletPolyline Group(String groupName) #
Returns: LeafletPolyline

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

Parameters

groupName System.String requiredposition: 0
public LeafletPolyline Opacity(Double opacity) #
Returns: LeafletPolyline

Sets stroke opacity (0..1).

Parameters

opacity System.Double requiredposition: 0
public LeafletPolyline Popup(String popup) #
Returns: LeafletPolyline

Sets popup text for the polyline.

Parameters

popup System.String requiredposition: 0
public LeafletPolyline Tooltip(String tooltip) #
Returns: LeafletPolyline

Sets tooltip text for the polyline.

Parameters

tooltip System.String requiredposition: 0
public LeafletPolyline Weight(Double weight) #
Returns: LeafletPolyline

Sets stroke weight (in pixels).

Parameters

weight System.Double requiredposition: 0