This page describes an older version, please see latest API at http://resources.arcgis.com/en/help/flex-api/apiref/com/esri/ags/tasks/supportClasses/DataLayer.html.
Packagecom.esri.ags.tasks.supportClasses
Classpublic class DataLayer
InheritanceDataLayer Inheritance Object

Since : ArcGIS API for Flex 1.2

Possible input for certain properties of the ClosestFacilityParameters, RouteParameters or ServiceAreaParameters. For RouteParameters it is the stops and different barriers properties. For ServiceAreaParameters it is the facilities and different barriers properties. For RouteParameters it is the facilities, incidents and different barriers properties.

See also

ClosestFacilityParameters
RouteParameters
ServiceAreaParameters
com.esri.ags.tasks.ClosestFacilityTask
com.esri.ags.tasks.RouteTask
com.esri.ags.tasks.ServiceAreaTask


Public Properties
 PropertyDefined By
  geometry : Geometry
The geometry to apply to the spatial filter.
DataLayer
  name : String
The name of the data layer in the map service that is being referenced.
DataLayer
  spatialRelationship : String = esriSpatialRelIntersects
The spatial relationship to be applied on the input geometry while performing the query.
DataLayer
  where : String
A where clause for the query.
DataLayer
Public Constants
 ConstantDefined By
  SPATIAL_REL_CONTAINS : String = esriSpatialRelContains
[static] Part or all of a feature from feature class 1 is contained within a feature from feature class 2.
DataLayer
  SPATIAL_REL_CROSSES : String = esriSpatialRelCrosses
[static] The feature from feature class 1 crosses a feature from feature class 2.
DataLayer
  SPATIAL_REL_ENVELOPEINTERSECTS : String = esriSpatialRelEnvelopeIntersects
[static] The envelope of feature class 1 intersects with the envelope of feature class 2.
DataLayer
  SPATIAL_REL_INDEXINTERSECTS : String = esriSpatialRelIndexIntersects
[static] The envelope of the query feature class intersects the index entry for the target feature class.
DataLayer
  SPATIAL_REL_INTERSECTS : String = esriSpatialRelIntersects
[static] Part of a feature from feature class 1 is contained in a feature from feature class 2.
DataLayer
  SPATIAL_REL_OVERLAPS : String = esriSpatialRelOverlaps
[static] Features from feature class 1 overlap features in feature class 2.
DataLayer
  SPATIAL_REL_TOUCHES : String = esriSpatialRelTouches
[static] The feature from feature class 1 touches the border of a feature from feature class 2.
DataLayer
  SPATIAL_REL_WITHIN : String = esriSpatialRelWithin
[static] The feature from feature class 1 is completely enclosed by the feature from feature class 2.
DataLayer
Property Detail
geometryproperty
public var geometry:Geometry

The geometry to apply to the spatial filter. The spatial relationship as specified by spatialRelationship is applied to this geometry while performing the query. The valid geometry types are Extent, MapPoint, Multipoint, Polyline, or Polygon.

See also

nameproperty 
public var name:String

The name of the data layer in the map service that is being referenced.

spatialRelationshipproperty 
public var spatialRelationship:String = esriSpatialRelIntersects

The spatial relationship to be applied on the input geometry while performing the query.

The default value is SPATIAL_REL_INTERSECTS.

whereproperty 
public var where:String

A where clause for the query. Any valid SQL where clause operating on the fields in the layer is allowed, for example: query.where = "POP2000 > 350000".

Constant Detail
SPATIAL_REL_CONTAINSConstant
public static const SPATIAL_REL_CONTAINS:String = esriSpatialRelContains

Part or all of a feature from feature class 1 is contained within a feature from feature class 2.

SPATIAL_REL_CROSSESConstant 
public static const SPATIAL_REL_CROSSES:String = esriSpatialRelCrosses

The feature from feature class 1 crosses a feature from feature class 2.

SPATIAL_REL_ENVELOPEINTERSECTSConstant 
public static const SPATIAL_REL_ENVELOPEINTERSECTS:String = esriSpatialRelEnvelopeIntersects

The envelope of feature class 1 intersects with the envelope of feature class 2.

SPATIAL_REL_INDEXINTERSECTSConstant 
public static const SPATIAL_REL_INDEXINTERSECTS:String = esriSpatialRelIndexIntersects

The envelope of the query feature class intersects the index entry for the target feature class.

SPATIAL_REL_INTERSECTSConstant 
public static const SPATIAL_REL_INTERSECTS:String = esriSpatialRelIntersects

Part of a feature from feature class 1 is contained in a feature from feature class 2.

SPATIAL_REL_OVERLAPSConstant 
public static const SPATIAL_REL_OVERLAPS:String = esriSpatialRelOverlaps

Features from feature class 1 overlap features in feature class 2.

SPATIAL_REL_TOUCHESConstant 
public static const SPATIAL_REL_TOUCHES:String = esriSpatialRelTouches

The feature from feature class 1 touches the border of a feature from feature class 2.

SPATIAL_REL_WITHINConstant 
public static const SPATIAL_REL_WITHIN:String = esriSpatialRelWithin

The feature from feature class 1 is completely enclosed by the feature from feature class 2.