Class: DataLayerE-mail This Topic Printable Version Give Us Feedback

Description

Class added v1.4.

Possible input for RouteParameters.stops or RouteParameters.barriers.

Class hierarchy

esri.tasks.DataLayer

Constructor

Constructor Description
esri.tasks.DataLayer() Creates a new DataLayer object.

Properties

Property Type Description
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.
name String The name of the data layer in the map service that is being referenced.
spatialRelationship String The spatial relationship to be applied on the input geometry while performing the query. See the Constants Table for a list of valid values.
where String A where clause for the query. Any legal SQL where clause operating on the fields in the layer is allowed, for example: query.where = "POP2000 > 350000".

Constants

Constant Description
SPATIAL_REL_CONTAINS Part or all of a feature from feature class 1 is contained within a feature from feature class 2.
SPATIAL_REL_CROSSES The feature from feature class 1 crosses a feature from feature class 2.
SPATIAL_REL_ENVELOPEINTERSECTS The envelope of feature class 1 intersects with the envelope of feature class 2.
SPATIAL_REL_INDEXINTERSECTS The envelope of the query feature class intersects the index entry for the target feature class.
SPATIAL_REL_INTERSECTS Part of a feature from feature class 1 is contained in a feature from feature class 2.
SPATIAL_REL_OVERLAPS Features from feature class 1 overlap features in feature class 2.
SPATIAL_REL_TOUCHES The feature from feature class 1 touches the border of a feature from feature class 2.
SPATIAL_REL_WITHIN The feature from feature class 1 is completely enclosed by the feature from feature class 2
Constructor Detail

esri.tasks.DataLayer()

Creates a new DataLayer object.
Properties Detail

<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.

<String> name

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

<String> spatialRelationship

The spatial relationship to be applied on the input geometry while performing the query. See the Constants Table for a list of valid values.

<String> where

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