Constructor
# new Line(locations)
Parameters:
Name | Type | Description |
---|---|---|
locations |
Array.<Location>
|
array of locations. |
- Tutorials:
Example
const line = new Vexcel.Geometry.Line(
[
new Vexcel.Geometry.Location(30.770159115784214, -86.6162109375),
new Vexcel.Geometry.Location(31.914867503276223, -88.57177734375),
new Vexcel.Geometry.Location(33.50475906922609, -87.2094726562),
]);
Classes
Methods
# getLength() → {number}
Return the length of the polyline on projected plane.
Length (on projected plane).
number
# getLocations() → {Array.<Location>}
Returns the locations that define the polyline.
array with location object with latitude and longitude
Array.<Location>