Marker

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

Example

A standard way to initialise.

<l-marker lat-lng="[0,0]"></l-marker>

Parameters

Mandatory HTML properties to successfully instantiate.

AttributeExampleDescription
lat-lng[45, 45]LatLng position to define location

Properties

AttributeTypeDescription
opacitynumber1.0
iconstringJSON options to setIcon method

Events

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