add
Creates and adds a point with the specified initial properties to the collection. The added point is returned so it can be modified or removed from the collection later.
// Example 1: Add a point, specifying all the default values.
const p = pointPrimitives.add({
show : true,
position : Cartesian3.ZERO,
pixelSize : 10.0,
color : Color.WHITE,
outlineColor : Color.TRANSPARENT,
outlineWidth : 0.0,
id : undefined
});
Content copied to clipboard
// Example 2: Specify only the point's cartographic position.
const p = pointPrimitives.add({
position : Cartesian3.fromDegrees(longitude, latitude, height)
});
Content copied to clipboard
Return
The point that was added to the collection.
Parameters
options
A template describing the point's properties as shown in Example 1.