new MultiPoint(data, optionsopt) [source]
var multiPoint = new MultiPoint(
[
[121.5080881906138, 31.241128104458117],
[121.50804527526954, 31.237238340103413],
[121.5103728890997, 31.23888972560888]
]
).addTo(layer);
Parameter | Type | Default | Description |
---|---|---|---|
data
|
Array.<Array.<Number>> | Array.<Coordinate> | Array.<Marker> | construct data, coordinates or an array of markers | |
options
opt
|
Object | null | options defined in nMultiPoint |
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>>> |