| Package | com.esri.ags.geometry |
| Class | public class Multipoint |
| Inheritance | Multipoint Geometry Object |
Default MXML Propertypoints
See also
| Property | Defined By | ||
|---|---|---|---|
| extent : Extent [override] [read-only]
The extent of this Multipoint. | Multipoint | ||
| points : Array
The array of MapPoint(s). | Multipoint | ||
![]() | spatialReference : SpatialReference
The spatial reference of the geometry. | Geometry | |
| type : String [override] [read-only]
The type of geometry is MULTIPOINT. | Multipoint | ||
| Method | Defined By | ||
|---|---|---|---|
Multipoint(points:Array = null, spatialReference:SpatialReference = null)
Creates a new Multipoint object. | Multipoint | ||
Adds a point to the array of MapPoint(s) or Multipoint(s). | Multipoint | ||
Returns a point at the specified index of the points array. | Multipoint | ||
removePoint(index:int):MapPoint
Removes a point from the Multipoint. | Multipoint | ||
Sets(updates) an existing point in the multipoint. | Multipoint | ||
| extent | property |
extent:Extent [read-only] [override] The extent of this Multipoint. The extent is null for Multipoint having single point.
public function get extent():Extent| points | property |
points:ArrayThe array of MapPoint(s).
public function get points():Array public function set points(value:Array):void| type | property |
type:String [read-only] [override] The type of geometry is MULTIPOINT.
public function get type():String| Multipoint | () | Constructor |
public function Multipoint(points:Array = null, spatialReference:SpatialReference = null)Creates a new Multipoint object.
Parameterspoints:Array (default = null) — The array of MapPoints.
| |
spatialReference:SpatialReference (default = null) — The spatial reference of the MapPoint(s).
|
| addPoint | () | method |
public function addPoint(point:MapPoint):voidAdds a point to the array of MapPoint(s) or Multipoint(s). When added the index is incremented by one.
Parameters
point:MapPoint — The array of MapPoint(s).
|
| getPoint | () | method |
public function getPoint(index:int):MapPointReturns a point at the specified index of the points array.
Parameters
index:int — The index of a point in points array.
|
MapPoint — A copy of the point at the specified index.
|
| removePoint | () | method |
public function removePoint(index:int):MapPointRemoves a point from the Multipoint. The index specifies which point to remove.
Parameters
index:int — The index of the point to remove.
|
MapPoint |
| setPoint | () | method |
public function setPoint(index:int, point:MapPoint):voidSets(updates) an existing point in the multipoint.
Parameters
index:int — The index of the updated point in the points array.
| |
point:MapPoint — The updated point.
|
<esri:Multipoint>
<esri:MapPoint x="14" y="2.5"/>
<esri:MapPoint x="14" y="3.5"/>
</esri:Multipoint>
<esri:Graphic symbol="{sms_basic}" toolTip="Multipoint SimpleMarkerSymbol">
<esri:geometry>
<esri:Multipoint>
<esri:MapPoint x="14" y="2.5"/>
<esri:MapPoint x="14" y="3.5"/>
</esri:Multipoint>
</esri:geometry>
<esri:symbol>
<esri:SimpleMarkerSymbol"/>
</esri:symbol>
</esri:Graphic>