PolylineOptions

Properties

Link copied to clipboard
abstract var attribution: String?

String to be shown in the attribution control, e.g. "© OpenStreetMap contributors". It describes the layer data and is often a legal obligation towards copyright holders and tile providers.

Link copied to clipboard
Link copied to clipboard
abstract var className: String?

Custom class name set on an element. Only for SVG renderer.

Link copied to clipboard
abstract var color: String?

Stroke color

Link copied to clipboard
abstract var dashArray: dynamic

A string that defines the stroke dash pattern. Doesn't work on Canvas-powered layers in some old browsers.

Link copied to clipboard
abstract var dashOffset: String?

A string that defines the distance into the dash pattern to start the dash. Doesn't work on Canvas-powered layers in some old browsers.

Link copied to clipboard
abstract var fill: Boolean?

Whether to fill the path with color. Set it to false to disable filling on polygons or circles.

Link copied to clipboard
abstract var fillColor: String?

Fill color. Defaults to the value of the color option

Link copied to clipboard
abstract var fillOpacity: Number?

Fill opacity.

Link copied to clipboard
abstract var fillRule: String?

A string that defines how the inside of a shape is determined.

Link copied to clipboard
abstract var interactive: Boolean?

If true, the popup/tooltip will listen to the mouse events.

Link copied to clipboard
abstract var lineCap: String?

A string that defines shape to be used at the end of the stroke.

Link copied to clipboard
abstract var lineJoin: String?

A string that defines shape to be used at the corners of the stroke.

Link copied to clipboard
abstract var noClip: Boolean?

Disable polyline clipping.

Link copied to clipboard
abstract var opacity: Number?

Stroke opacity

Link copied to clipboard
abstract var pane: String?

By default, the layer will be added to the map's overlay pane. Overriding this option will cause the layer to be placed on another pane by default.

Link copied to clipboard

When true, a mouse event on this path will trigger the same event on the map (unless L.DomEvent.stopPropagation is used).

Link copied to clipboard
abstract var smoothFactor: Number?

How much to simplify the polyline on each zoom level. More means better performance and smoother look, and less means more accurate representation.

Link copied to clipboard
abstract var stroke: Boolean?

Whether to draw stroke along the path. Set it to false to disable borders on polygons or circles.

Link copied to clipboard
abstract var weight: Number?

Stroke width in pixels