ym.modules.provider.MultiPolyline

Overview

Extends FeatureGroup to include multi-polyline creation. This is a layer consisting of multiple polylines that share styling/popup.

This class is deprecated. It will be removed in the next major revision (v4). Please use the class Polyline instead.

Initialization

Factory: ym.multiPolyline(latlng, options)

Instantiates a multi-polyline object with an array of arrays of geographic points (one for each individual polyline) and optionally an option object.

Parameters

Name Description Data type Default value
latlng [erforderlich] LatLng[][]  
options [optional] Polyline options  

Methods

MultiPolylines accept all polyline methods, but can contain multiple line features:

setLatLngs(latlngs) from v3

Replaces all lines and their paths with the specified array of arrays of geographic points.

Parameter

Name Description Data type Default value
latlngs   LatLng[][]  

Rückgabe

this

getLatLngs() from v3

Returns an array of arrays of geographic points in each row.

Rückgabe

LatLng[][]

openPopup() from v3

Opens the popup previously bound by bindPopup.

Rückgabe

this

toGeoJSON() from v3

Returns a GeoJSON representation of the multipolyline (GeoJSON MultiLineString feature)

Rückgabe

object