| Package | com.esri.ags.geometry |
| Class | public class Multipoint |
| Inheritance | Multipoint Geometry |
Default MXML Propertypoints
<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>See also
| Property | Defined by | ||
|---|---|---|---|
| extent : Extent
[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 [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 [added in version 1.3].
| Multipoint | ||
|
removePoint(index:int):MapPoint
Removes a point from the Multipoint.
| Multipoint | ||
|
Sets (updates) an existing point in the multipoint [added in version 1.3].
| Multipoint | ||
| extent | property |
extent:Extent [read-only]The extent of this Multipoint. The extent is null for Multipoint having single point.
Implementation public function get extent():Extent
| points | property |
points:Array [read-write]The array of MapPoint(s).
Implementation public function get points():Array
public function set points(value:Array):void
| type | property |
type:String [read-only]The type of geometry is MULTIPOINT.
Implementation 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.
Parameterspoint:MapPoint — The array of MapPoint(s).
|
| getPoint | () | method |
public function getPoint(index:int):MapPointReturns a point at the specified index of the points array [added in version 1.3].
Parametersindex: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.
Parametersindex: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 [added in version 1.3].
Parametersindex:int — The index of the updated point in the points array.
|
|
point:MapPoint — The updated point.
|