public class DataLayer
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
DataLayer.SpatialRelationshipType |
Modifier and Type | Method and Description |
---|---|
static DataLayer |
create()
Creates a new DataLayer object.
|
Geometry |
getGeometry()
The geometry to apply to the spatial filter.
|
java.lang.String |
getName()
The name of the data layer in the map service that is being referenced.
|
DataLayer.SpatialRelationshipType |
getSpatialRelationship()
The spatial relationship to be applied on the input geometry while performing the query.
|
java.lang.String |
getWhere()
A where clause for the query.
|
void |
setGeometry(Geometry geometry)
Set the geometry parameter.
|
void |
setName(java.lang.String name)
Set the name parameter.
|
void |
setSpatialRelationship(DataLayer.SpatialRelationshipType spatialRelationship)
Set the spatial relationship
|
void |
setWhere(java.lang.String where)
Set the where parameter.
|
public static DataLayer create()
public final Geometry getGeometry()
public final void setGeometry(Geometry 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.public final java.lang.String getName()
public final void setName(java.lang.String name)
name
- - The name of the data layer in the map service that is being referenced.public final DataLayer.SpatialRelationshipType getSpatialRelationship()
public final void setSpatialRelationship(DataLayer.SpatialRelationshipType spatialRelationship)
spatialRelationship
- - The spatial relationship to be applied on the input geometry while performing the query.public final java.lang.String getWhere()
public final void setWhere(java.lang.String where)
where
- - A where clause for the query. Any legal SQL where clause operating on the fields in the layer is allowed,
for example: query.setWhere("POP2000 > 350000").