add
Creates and adds a polyline with the specified initial properties to the collection. The added polyline is returned so it can be modified or removed from the collection later.
// Example 1: Add a polyline, specifying all the default values.
const p = polylines.add({
show : true,
positions : ellipsoid.cartographicArrayToCartesianArray([
Cartographic.fromDegrees(-75.10, 39.57),
Cartographic.fromDegrees(-77.02, 38.53)]),
width : 1
});
Content copied to clipboard
Return
The polyline that was added to the collection.
Parameters
options
A template describing the polyline's properties as shown in Example 1.