Helper type for building immutable Multipoint geometries. More...
Import Statement: | import Esri.ArcGISRuntime 100.15 |
Since: | Esri.ArcGISRuntime 100.0 |
Inherits: |
Properties
- points : PointCollection
Signals
Detailed Description
The spatial reference must be set before using the builder and cannot be changed after the builder contains points.
Assign the initial multipoint geometry stored in the builder by setting the geometry property, or just start adding new points to the builder. To change the contents of the geometry in the builder, use the mutable PointCollection, accessible through the points property. When you are done creating the multipoint geometry, get the immutable Multipoint geometry from the builder by getting the geometry property. Then, you can use the builder to create another geometry by changing the geometry contained inside the builder.
This QML type supports the following default properties. A default property may be declared inside another declared object without being assigned explicitly to a property.
Type | Default Property |
---|---|
SpatialReference | spatialReference |
PointCollection | points |
One way to use a MultipointBuilder is to first declare one:
MultipointBuilder { id: mpBuilderWGS84 spatialReference: SpatialReference { wkid: 4326 } }
Then in a JavaScript function, use the MultipointBuilder to create a Multipoint:
mpBuilderWGS84.points.addPointXY(-117.195654, 34.056077); mpBuilderWGS84.points.addPointXY(-117.190113, 34.057237); mpBuilderWGS84.points.addPointXY(-117.195102, 34.057237); var mpEsri = mpBuilderWGS84.geometry;
Property Documentation
points : PointCollection |
The point collection that this builder is constructing or modifying.
Signal Documentation
Emitted when the points property changes.
Note: The corresponding handler is onPointsChanged
.