Packagecom.esri.aws.awx.map.layers
Classpublic class QueryLayer
InheritanceQueryLayer Inheritance MarkerLayer Inheritance OverlayLayer Inheritance com.esri.aws.awx.map.layers.BaseLayer
Implementscom.esri.aws.osgi.framework.IServiceListener

QueryGroupLayer is a layer that retrieves and displays markers from an ArcWeb Services Spatial Query point data source.

QueryGroupLayer only supports point data sources (as opposed to ISpatialQuery which supports all Spatial Query data sources) because geometry is only returned for point data sources.

View the examples.

See also

com.esri.aws.services.SpatialQueryActivator
QueryLayer data sources


Public Properties
 PropertyDefined by
 InheritedbringToTopOnMouseOver : Boolean = true
If true, on mouse over of an overlay object, the overlay display index is adjusted so that it displays on the top of the stack.
OverlayLayer
  count : int
The maximum number of results per request.
QueryLayer
  dataSource : String
The Spatial Query data source.
QueryLayer
 Inheritedextent : Extent
The bounding box (maxX, maxY, minX, minY) of all the contained overlay objects.
OverlayLayer
  fieldMap : Dictionary
Determines the fields that are returned and if they are aliased in the style.
QueryLayer
  labelField : String
The field to use for labelling by the style.
QueryLayer
 InheritednumOverlays : int
The number of overlays currently in this layer.
OverlayLayer
  pollInterval : int
Poll interval is used to re-run the query on a timer.
QueryLayer
 Inheritedstyle : IStyle
The style is used by any overlays which inherit their style from its parent.
OverlayLayer
  whereClause : String
The SQL where clause used to filter the data.
QueryLayer
Public Methods
 MethodDefined by
  
QueryLayer(style:IStyle = null)
Creates a new QueryLayer.
QueryLayer
 Inherited
addOverlay(overlayObject:OverlayObject):void
Adds an overlay object to the layer.
OverlayLayer
 Inherited
Gets all the overlay objects in the layer.
OverlayLayer
 Inherited
getOverlay(overlayName:String):OverlayObject
Gets an overlay object based on the overlay identifier.
OverlayLayer
 Inherited
Removes all the overlay objects in the layer.
OverlayLayer
 Inherited
removeOverlay(overlayObject:OverlayObject):void
Removes an overlay object from the layer.
OverlayLayer
Events
 EventSummaryDefined by
 Inherited Dispatched after a child has been added to a container.OverlayLayer
 Inherited Dispatched before a child of a container is removed.OverlayLayer
Property detail
countproperty
public var count:int

The maximum number of results per request.

The default value is 10.

This property can be used as the source for data binding.

dataSourceproperty 
public var dataSource:String

The Spatial Query data source.

The default value is ArcWeb:USGS.Earthquakes.World.

This property can be used as the source for data binding.

fieldMapproperty 
public var fieldMap:Dictionary

Determines the fields that are returned and if they are aliased in the style.

This property can be used as the source for data binding.

labelFieldproperty 
public var labelField:String

The field to use for labelling by the style.

This property can be used as the source for data binding.

pollIntervalproperty 
public var pollInterval:int

Poll interval is used to re-run the query on a timer. The pollInterval is in seconds. A value of 0 means the timer will not run. The recommended value is to be no less than the update frequency of the data in the dataSource.

The default value is 0.

This property can be used as the source for data binding.

whereClauseproperty 
public var whereClause:String

The SQL where clause used to filter the data.

This property can be used as the source for data binding.

See also

Constructor detail
QueryLayer()constructor
public function QueryLayer(style:IStyle = null)

Creates a new QueryLayer. By default, displays 10 earth quakes (using the "ArcWeb:USGS.Earthquakes.World" data source), and refreshes when the map center is changing.

Parameters
style:IStyle (default = null) — The default style of the layer (optional).
Examples
Basic_QueryLayer
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:awx="http://www.arcwebservices.com/2007/awx"
    layout="absolute" >

    <!-- Install the framework and the services we'll need -->
    <awx:Framework apiKey="[MY-API-KEY]">
        <awx:SpatialQueryActivator/>
    </awx:Framework>

    <awx:Map scale="800000" centerGeoX="-87.62" centerGeoY="41.86">
        <!-- show airports on top of default basemap -->
        <awx:QueryLayer dataSource="ArcWeb:ESRI.Airports.World" labelField="NAME" />
    </awx:Map>
</mx:Application>