| Package | com.esri.ags.tasks.supportClasses |
| Class | public class IdentifyParameters |
| Inheritance | IdentifyParameters Object |
Note: The IdentifyTask uses default map service settings, and thus will not take into account any layer visibility changes made on a map service displayed on the map.
See also
| Property | Defined By | ||
|---|---|---|---|
| dpi : Number = 96
Resolution of the current map view in dots per inch. | IdentifyParameters | ||
| geometry : Geometry
The geometry used to select features during Identify. | IdentifyParameters | ||
| height : Number
Height of the map currently being viewed in pixels. | IdentifyParameters | ||
| layerDefinitions : Array
Array of layer definition expressions that allows you to filter the features of individual layers in the results. | IdentifyParameters | ||
| layerIds : Array
The layers to perform the Identify operation on. | IdentifyParameters | ||
| layerOption : String = top
Specifies which method to use when using Identify. | IdentifyParameters | ||
| layerTimeOptions : Array
Array of LayerTimeOptions that allow you to override how a layer is identified in reference to the timeExtent [added in version 2.0]. | IdentifyParameters | ||
| mapExtent : Extent
The extent or bounding box of the map currently being viewed. | IdentifyParameters | ||
| maxAllowableOffset : Number
The maximum allowable offset used for generalizing geometries returned by the Identify operation. | IdentifyParameters | ||
| returnGeometry : Boolean = false
If true, the result set include the geometry associated with each result. | IdentifyParameters | ||
| spatialReference : SpatialReference
The well-known ID of the spatial reference of the input and output geometries as well as of the mapExtent. | IdentifyParameters | ||
| timeExtent : TimeExtent
The time instant or the time extent within which the identify should be performed [added in version 2.0]. | IdentifyParameters | ||
| tolerance : Number = 2
The distance in screen pixels from the specified geometry within which the identify should be performed. | IdentifyParameters | ||
| width : Number
Width of the map currently being viewed in pixels. | IdentifyParameters | ||
| Constant | Defined By | ||
|---|---|---|---|
| LAYER_OPTION_ALL : String = all [static]
All layers are identified, even if they are not visible. | IdentifyParameters | ||
| LAYER_OPTION_TOP : String = top [static]
Only the topmost visible layer is identified. | IdentifyParameters | ||
| LAYER_OPTION_VISIBLE : String = visible [static]
All visible layers are identified. | IdentifyParameters | ||
| dpi | property |
public var dpi:Number = 96Resolution of the current map view in dots per inch.
The default value is 96.
| geometry | property |
public var geometry:GeometryThe geometry used to select features during Identify. The most common geometry used with Identify is a point.
| height | property |
public var height:NumberHeight of the map currently being viewed in pixels.
| layerDefinitions | property |
public var layerDefinitions:Array| Since : | ArcGIS API for Flex 2.0 |
Array of layer definition expressions that allows you to filter the features of individual layers in the results. Requires ArcGIS Server 10.0 or above.
| layerIds | property |
public var layerIds:ArrayThe layers to perform the Identify operation on. The ID is returned in layerInfos. Only applies when layerOption is "all" or "visible".
myIdentifyParams.layerIds = [0,1,2];| layerOption | property |
public var layerOption:String = topSpecifies which method to use when using Identify.
| layerTimeOptions | property |
public var layerTimeOptions:Array| Since : | ArcGIS API for Flex 2.0 |
Array of LayerTimeOptions that allow you to override how a layer is identified in reference to the timeExtent [added in version 2.0]. Requires ArcGIS Server 10.0 or above.
See also
| mapExtent | property |
public var mapExtent:ExtentThe extent or bounding box of the map currently being viewed. The mapExtent property is assumed to be in the spatial reference of the map unless sr has been specified. The values for mapExtent and imageDisplay are used to determine the layers visible in the current extent. They are also used to calculate the search distance on the map based on the tolerance in screen pixels.
| maxAllowableOffset | property |
public var maxAllowableOffset:Number| Since : | ArcGIS API for Flex 2.0 |
The maximum allowable offset used for generalizing geometries returned by the Identify operation. The units are the same as the returned features. Requires ArcGIS Server 10.0 or above.
| returnGeometry | property |
public var returnGeometry:Boolean = false
If true, the result set include the geometry associated with each result.
Since the geometry makes up a significant portion of the response, only use when you plan
to use the geometry of the feature, for example, to include them on a map.
The default value is false.
| spatialReference | property |
public var spatialReference:SpatialReferenceThe well-known ID of the spatial reference of the input and output geometries as well as of the mapExtent. If sr is not specified, the geometry and the extent are assumed to be in the spatial reference of the map, and the output geometries will also be in the spatial reference of the map
| timeExtent | property |
public var timeExtent:TimeExtent| Since : | ArcGIS API for Flex 2.0 |
The time instant or the time extent within which the identify should be performed [added in version 2.0]. Set the TimeExtent's startTime and endTime to the same time to define a time instant. Requires ArcGIS Server 10.0 or above.
| tolerance | property |
public var tolerance:Number = 2The distance in screen pixels from the specified geometry within which the identify should be performed.
Note: as of version 1.1, the tolerance property is now optional.
The default value is 2 pixels.
| width | property |
public var width:NumberWidth of the map currently being viewed in pixels.
| LAYER_OPTION_ALL | Constant |
public static const LAYER_OPTION_ALL:String = allAll layers are identified, even if they are not visible.
| LAYER_OPTION_TOP | Constant |
public static const LAYER_OPTION_TOP:String = topOnly the topmost visible layer is identified.
| LAYER_OPTION_VISIBLE | Constant |
public static const LAYER_OPTION_VISIBLE:String = visibleAll visible layers are identified.
var identifyParams:IdentifyParameters = new IdentifyParameters(); identifyParams.geometry = mapPoint; identifyParams.layerOption = IdentifyParameters.LAYER_OPTION_TOP; identifyParams.height = myMap.height; identifyParams.width = myMap.width; identifyParams.mapExtent = myMap.extent; identifyParams.spatialReference = myMap.spatialReference; identifyTask.execute(identifyParams);