Polyline

HTML equivalent to L.polyline function. Can be a child of l-map or l-layer-group elements.

Example

A standard way to initialise.

<l-polyline lat-lngs="[[0,0], [1,0], [1, 1]]"></l-polyline>

Parameters

Mandatory HTML properties to successfully instantiate.

AttributeExampleDescription
lat-lngs[[0, 0], [1, 0], [1, 1]]LatLngs to define extent

Properties

AttributeTypeDescription
strokebooleantrue
colorstring#3388ff
weightnumber3
opacitynumber1.0
lineCapstringround
lineJoinstringround
dashArraystringnull
dashOffsetstringnull
fillbooleantrue
fillColorstring#3388ff
fillOpacitynumber0.2
smoothFactornumber1.0
noClipbooleanfalse
interactivebooleantrue

Events

Event keyDetailDescription
l:layer:connectedTriggered when connected to the document