public class IdentifyParameters
extends com.google.gwt.core.client.JavaScriptObject
Modifier and Type | Class and Description |
---|---|
static class |
IdentifyParameters.LayerOption |
Modifier and Type | Method and Description |
---|---|
static IdentifyParameters |
create()
Creates a new IdentifyParameters object.
|
int |
getDpi()
Resolution of the current map view in dots per inch.
|
com.google.gwt.core.client.JsArray<DynamicLayerInfo> |
getDynamicLayerInfos()
An array of DynamicLayerInfos used to change the layer ordering or redefine the map.
|
Geometry |
getGeometry()
The geometry used to select features during Identify.
|
int |
getHeight()
Height of the map currently being viewed in pixels.
|
com.google.gwt.core.client.JsArrayString |
getLayerDefinitions()
Array of layer definition expressions that allows you to filter the features of individual layers.
|
com.google.gwt.core.client.JsArrayInteger |
getLayerIds()
The layers to perform the identify operation on.
|
IdentifyParameters.LayerOption |
getLayerOption()
Specifies which layers to use when using Identify.
|
com.google.gwt.core.client.JsArray<LayerTimeOptions> |
getLayerTimeOptions()
Array of LayerTimeOptions objects that allow you to define time options for the specified layers.
|
Extent |
getMapExtent()
The Extent or bounding box of the map currently being viewed.
|
float |
getMaxAllowableOffset()
The maximum allowable offset used for generalizing geometries returned by the identify operation.
|
SpatialReference |
getSpatialReference()
The spatial reference of the input and output geometries as well as of the mapExtent.
|
TimeExtent |
getTimeExtent()
Specify the time extent used by the identify task.
|
double |
getTolerance()
The distance in screen pixels from the specified geometry within which the identify should be performed.
|
int |
getWidth()
Width of the map currently being viewed in pixels.
|
boolean |
returnGeometry()
If "true", the result set includes the geometry associated with each result.
|
void |
setDpi(int dpi)
Set the dpi parameter.
|
void |
setDynamicLayerInfos(DynamicLayerInfo[] dynamicLayerInfos)
Set the dynamicLayerInfos parameter.
|
void |
setGeometry(Geometry geometry)
Set the geometry parameter.
|
void |
setHeight(int height)
Set the height parameter.
|
void |
setLayerDefinitions(java.lang.String[] layerDefinitions)
Set the layer definitions parameter.
|
void |
setLayerIds(int[] layerIds)
set the layerIds parameter.
|
void |
setLayerOption(IdentifyParameters.LayerOption layerOption) |
void |
setLayerTimeOptions(LayerTimeOptions[] layerTimeOptions)
Set the layerTimeOptions parameter.
|
void |
setMapExtent(Extent mapExtent)
Set the mapExtent parameter.
|
void |
setMaxAllowableOffset(int maxAllowableOffset)
Set the maxAllowableOffset parameter
|
void |
setReturnGeometry(boolean returnGeometry)
set the returnGeometry parameter.
|
void |
setSpatialReference(SpatialReference spatialReference)
Set the spatialReference parameter.
|
void |
setTimeExtent(TimeExtent timeExtent)
Set the timeExtent parameter.
|
void |
setTolerance(double tolerance)
Set the tolerance parameter.
|
void |
setWidth(int width)
Set the width parameter.
|
public static final IdentifyParameters create()
public final int getDpi()
public final void setDpi(int dpi)
dpi
- - Resolution of the current map view in dots per inch. Default value: 96public final com.google.gwt.core.client.JsArray<DynamicLayerInfo> getDynamicLayerInfos()
public final void setDynamicLayerInfos(DynamicLayerInfo[] dynamicLayerInfos)
dynamicLayerInfos
- - An array of DynamicLayerInfos used to change the layer ordering
or redefine the map. When set the Identify operation will perform the identify against the
dynamic layers. (As of v2.7)public final Geometry getGeometry()
public final void setGeometry(Geometry 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.public final int getHeight()
public final void setHeight(int height)
height
- - Height of the map currently being viewed in pixels.public final com.google.gwt.core.client.JsArrayString getLayerDefinitions()
public final void setLayerDefinitions(java.lang.String[] layerDefinitions)
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.public final com.google.gwt.core.client.JsArrayInteger getLayerIds()
public final void setLayerIds(int[] layerIds)
layerIds
- - 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.public final IdentifyParameters.LayerOption getLayerOption()
public final void setLayerOption(IdentifyParameters.LayerOption layerOption)
layerOption
- - Specifies which layers to use when using Identify. Default value: LAYER_OPTION_TOPpublic final com.google.gwt.core.client.JsArray<LayerTimeOptions> getLayerTimeOptions()
public final void setLayerTimeOptions(LayerTimeOptions[] layerTimeOptions)
layerTimeOptions
- - Array of LayerTimeOptions objects that allow you to define time options for the specified layers.
There is one object per sub-layer.public final Extent getMapExtent()
public final void setMapExtent(Extent mapExtent)
mapExtent
- - 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.public final float getMaxAllowableOffset()
public final void setMaxAllowableOffset(int maxAllowableOffset)
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.public final boolean returnGeometry()
public final void setReturnGeometry(boolean returnGeometry)
returnGeometry
- - If "true", the result set includes the geometry associated with each result. The default is "false".public final SpatialReference getSpatialReference()
public final void setSpatialReference(SpatialReference 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.public final TimeExtent getTimeExtent()
public final void setTimeExtent(TimeExtent timeExtent)
timeExtent
- - Specify the time extent used by the identify task.public final double getTolerance()
public final void setTolerance(double tolerance)
tolerance
- - The distance in screen pixels from the specified geometry within which the identify
should be performed.public final int getWidth()
public final void setWidth(int width)
width
- - Width of the map currently being viewed in pixels.