Description
This data object is used as the identifyParameters argument to IdentifyTask.execute method. It specifies the criteria used to identify the features.
Samples
Search for
samples that use this class.
Class hierarchy
esri.tasks.IdentifyParameters
Constructor
Properties
| dpi |
Number
|
Resolution of the current map view in dots per inch. |
| geometry |
Geometry
|
The geometry used to select features during Identify. The type of the geometry is specified by Geometry type. The most common geometry used with Identify is a Point. |
| height |
Number
|
Height of the map currently being viewed in pixels. |
| layerDefinitions |
String[]
|
Array of layer definition expressions that allows you to filter the features of individual layers. Layer definitions with semicolons or colons are supported at version 2.0 if using a map service published using ArcGIS Server 10. |
| layerIds |
Number[]
|
The layers to perform the identify operation on. The layers are specified as a comma-separated list of layer ids. The list of ids is returned in ArcGISMapServiceLayer layerInfos. |
| layerOption |
String
|
Specifies which layers to use when using Identify. See the Constants table for valid values. |
| layerTimeOptions |
LayerTimeOptions[]
|
Array of LayerTimeOptions objects that allow you to define time options for the specified layers. There is one object per sub-layer. |
| mapExtent |
Extent
|
The 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, height, width, and dpi 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 |
Number
|
The maximum allowable offset used for generalizing geometries returned by the identify operation. The offset is in the units of the spatialReference. If a spatialReference is not defined the spatial reference of the map is used. |
| returnGeometry |
Boolean
|
If "true", the result set includes the geometry associated with each result. The default is "false". |
| spatialReference |
SpatialReference
|
The spatial reference of the input and output geometries as well as of the mapExtent. If the spatial reference 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. See Projected Coordinate Systems and Geographic Coordinate Systems for the list of supported spatial references. |
| timeExtent |
TimeExtent
|
Specify the time extent used by the identify task. |
| tolerance |
Number
|
The distance in screen pixels from the specified geometry within which the identify should be performed. |
| width |
Number
|
Width of the map currently being viewed in pixels. |
Constants
| LAYER_OPTION_ALL |
All layers are identified, even if they are not visible. Performance note: if your service has many layers, a request using ths option will not perform well.
A visible layer means you can see it in the map at the current extent. If a layer is turned off or not in range based on its scale dependency settings, it cannot be identified. |
| LAYER_OPTION_TOP |
Only the top-most visible layer is identified. |
| LAYER_OPTION_VISIBLE |
All visible layers are identified. |
Constructor Detail
esri.tasks.IdentifyParameters()
Creates a new IdentifyParameters object. The constructor takes no parameters.
Code snippets:
identifyParams = new esri.tasks.IdentifyParameters();
Properties Detail
Resolution of the current map view in dots per inch.
Default value: 96
The geometry used to select features during Identify. The type of the geometry is specified by
Geometry type. The most common geometry used with Identify is a
Point.
Code snippets:
identifyParams.geometry = evt.mapPoint;
Height of the map currently being viewed in pixels.
Code snippets:
identifyParams.height = map.height;
<String[]> layerDefinitions
Array of layer definition expressions that allows you to filter the features of individual layers. Layer definitions with semicolons or colons are supported at version 2.0 if using a map service published using ArcGIS Server 10.
Code snippets:
identifyParams.layerDefinitions[23] = "LANDUSE = 'COM'";
The layers to perform the identify operation on. The layers are specified as a comma-separated list of layer ids. The list of ids is returned in
ArcGISMapServiceLayer layerInfos.
Code snippets:
identifyParams.layerIds = [23,25];
Specifies which layers to use when using Identify. See the Constants table for valid values.
Default value: LAYER_OPTION_TOP
Code snippets:
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;
Array of LayerTimeOptions objects that allow you to define time options for the specified layers. There is one object per sub-layer.
Code snippets:
var timeOption1 = new esri.layers.LayerTimeOptions();
timeOption1.timeOffset = 4;
timeOption1.timeOffsetUnits = esri.layers.TimeInfo.UNIT_YEARS;
var options = [];
options[2]= timeOption1;
options[5] = timeOption2;
identifyParameters.layerTimeOptions = options;
The
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,
height,
width, and
dpi 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.
Code snippets:
identifyParams.mapExtent = map.extent;
<Number> maxAllowableOffset
The maximum allowable offset used for generalizing geometries returned by the identify operation. The offset is in the units of the spatialReference. If a spatialReference is not defined the spatial reference of the map is used. (As of v2.0)
If "true", the result set includes the geometry associated with each result. The default is "false".
Known values: true | false
Default value: false
Code snippets:
identifyParams.returnGeometry = true;
The spatial reference of the input and output geometries as well as of the
mapExtent. If the
spatial reference 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. See
Projected Coordinate Systems and
Geographic Coordinate Systems for the list of supported spatial references.
Specify the time extent used by the identify task.
The distance in screen pixels from the specified geometry within which the identify should be performed.
Code snippets:
identifyParams.tolerance = 3;
Width of the map currently being viewed in pixels.
Code snippets:
identifyParams.width = map.width;