| Package | com.esri.aws.awx.map.layers |
| Class | public class QueryLayer |
| Inheritance | QueryLayer MarkerLayer OverlayLayer com.esri.aws.awx.map.layers.BaseLayer |
| Implements | com.esri.aws.osgi.framework.IServiceListener |
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.
See also
| Property | Defined by | ||
|---|---|---|---|
![]() | bringToTopOnMouseOver : 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 | ||
![]() | extent : 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 | ||
![]() | numOverlays : 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 | ||
![]() | style : 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 | ||
| Method | Defined by | ||
|---|---|---|---|
|
QueryLayer(style:IStyle = null)
Creates a new QueryLayer.
| QueryLayer | ||
![]() |
addOverlay(overlayObject:OverlayObject):void
Adds an overlay object to the layer.
| OverlayLayer | |
![]() |
getAllOverlays():Array
Gets all the overlay objects in the layer.
| OverlayLayer | |
![]() |
getOverlay(overlayName:String):OverlayObject
Gets an overlay object based on the overlay identifier.
| OverlayLayer | |
![]() |
removeAllOverlays():void
Removes all the overlay objects in the layer.
| OverlayLayer | |
![]() |
removeOverlay(overlayObject:OverlayObject):void
Removes an overlay object from the layer.
| OverlayLayer | |
| count | property |
public var count:intThe maximum number of results per request.
The default value is 10.
This property can be used as the source for data binding.
| dataSource | property |
public var dataSource:StringThe Spatial Query data source.
The default value is ArcWeb:USGS.Earthquakes.World.
This property can be used as the source for data binding.
| fieldMap | property |
public var fieldMap:DictionaryDetermines the fields that are returned and if they are aliased in the style.
This property can be used as the source for data binding.
| labelField | property |
public var labelField:StringThe field to use for labelling by the style.
This property can be used as the source for data binding.
| pollInterval | property |
public var pollInterval:intPoll 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.
| whereClause | property |
public var whereClause:StringThe SQL where clause used to filter the data.
This property can be used as the source for data binding.
See also
| 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.
Parametersstyle:IStyle (default = null) — The default style of the layer (optional).
|
<?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>