new MultiLineString(data, optionsopt) [source]
var multiLineString = new MultiLineString(
[
[
[121.5289450479131, 31.2420083925986],
[121.52860172515919, 31.238926401171824]
],
[
[121.53091915374796, 31.241898323208233],
[121.53104789978069, 31.23859618183896]
],
[
[121.5324641061405, 31.241898323208233],
[121.53242119079626, 31.239146546752256]
]
],
{
symbol:{
'lineColor' : '#000000',
'lineWidth' : 5,
'lineOpacity' : 1
},
draggable:true
}
).addTo(layer);
Parameter | Type | Default | Description |
---|---|---|---|
data
|
Array.<Array.<Array.<Number>>> | Array.<Array.<Coordinate>> | Array.<LineString> | construct data, coordinates or an array of linestrings | |
options
opt
|
Object | null | options defined in MultiLineString |
Extends:
Methods
(inherited) getCoordinates() [source]
Get coordinates of the collection
Inherited From:
Returns:
Array.<Coordinate>|Array.<Array.<Coordinate>>|Array.<Array.<Array.<Coordinate>>>: coordinates(inherited) setCoordinates(coordinates) [source]
Set new coordinates to the collection
Parameter | Type | Description |
---|---|---|
coordinates
|
Array.<Coordinate> | Array.<Array.<Coordinate>> | Array.<Array.<Array.<Coordinate>>> |