API Documentation | All Packages | All Classes | Index | Frames No Frames |
Class FeatureLayer

Package | org.openscales.core.layer
Class | public class FeatureLayer
Inheritance | FeatureLayer Layer flash.display.Sprite
Subclasses | KML, WFS

Layer that display features stored as child element

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | DEFAULT_MAXEXTENT : Bounds [static] | Layer
|  | DEFAULT_PROJECTION : ProjProjection [static] | Layer
|  | displayed : Boolean | Layer
|  | extent : Bounds A Bounds object which represents the lon/lat bounds of the current viewPort. | Layer
|  | features : Array [read-only] | FeatureLayer
|  | featuresBbox : Bounds | FeatureLayer
|  | geometryType : String | FeatureLayer
|  | imageSize : Size For layers with a gutter, the image is larger than the tile by twice the gutter in each dimension. | Layer
|  | inEditionMode : Boolean | FeatureLayer
|  | inRange : Boolean | Layer
|  | isBaseLayer : Boolean Whether or not the layer is a base layer. | Layer
|  | isFixed : Boolean Whether or not the layer is a fixed layer. | Layer
|  | loadComplete : Boolean Whether or not the layer is loading data | Layer
|  | map : Map [write-only] | FeatureLayer
|  | maxExtent : Bounds The center of these bounds will not stray outside of the viewport extent during panning. | Layer
|  | maxResolution : Number | Layer
|  | maxZoomLevel : Number | Layer
|  | minResolution : Number | Layer
|  | minZoomLevel : Number | Layer
|  | numZoomLevels : Number Number of zoom levels | Layer
|  | projection : ProjProjection Override the default projection. | Layer
|  | proxy : String Proxy (usually a PHP, Python, or Java script) used to request remote servers like WFS servers in order to allow crossdomain requests. | Layer
|  | resolutions : Array A list of map resolutions (map units per pixel) in descending order. | Layer
|  | security : ISecurity | Layer
|  | selectedFeatures : Array | FeatureLayer
|  | style : Style | FeatureLayer
|  | visible : Boolean | Layer
|  | zindex : int | Layer

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _imageSize : Size = null | Layer
|  | loading : Boolean Used to set loading status of layer | Layer

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | FeatureLayer(name:String, isBaseLayer:Boolean = false, visible:Boolean = true, projection:String = null, proxy:String = null) | FeatureLayer
|  | addFeature(feature:Feature, dispatchFeatureEvent:Boolean = true):void Add Feature to the layer. | FeatureLayer
|  | addFeatures(features:Array):void Add Features to the layer. | FeatureLayer
|  | clear():void | FeatureLayer
|  | destroy(setNewBaseLayer:Boolean = true):void | FeatureLayer
|  | generateResolutions(numZoomLevels:uint, nominalResolution:Number):void | Layer
|  | getLonLatFromMapPx(viewPortPx:Pixel):LonLat Return a LonLat which is the passed-in map Pixel, translated into lon/lat by the layer. | Layer
|  | getMapPxFromLonLat(lonlat:LonLat):Pixel Return a Pixel which is the passed-in LonLat,translated into map pixels. | Layer
|  | getURL(bounds:Bounds):String | Layer
|  | getZoomForExtent(extent:Bounds):Number | Layer
|  | getZoomForResolution(resolution:Number):Number Return The index of the zoomLevel (entry in the resolutions array) that corresponds to the best fit resolution given the passed in value and the 'closest' specification. | Layer
|  | onMapMove(e:MapEvent):void | Layer
|  | onMapResize(e:MapEvent):void | Layer
|  | onMapZoom(e:MapEvent):void | Layer
|  | onSecurityInitialized(e:SecurityEvent):void | Layer
|  | redraw(fullRedraw:Boolean = true):void Clear and draw, if needed, layer based on current data eventually retreived previously by moveTo function. | Layer
|  | removeEventListenerFromMap():void | Layer
|  | removeFeature(feature:Feature, dispatchFeatureEvent:Boolean = true):void | FeatureLayer
|  | removeFeatures(features:Array):void | FeatureLayer
|  | reset():void | FeatureLayer

Protected Methods

| Method | Defined by
--- | --- | ---
|  | draw():void | FeatureLayer

Public Constants
Hide Inherited Public Constants
Show Inherited Public Constants

| Constant | Defined by
--- | --- | ---
|  | DEFAULT_NOMINAL_RESOLUTION : Number = 1.40625 [static] | Layer
|  | DEFAULT_NUM_ZOOM_LEVELS : uint = 16 [static] | Layer
|  | DEFAULT_SRS_CODE : String = "EPSG:4326" [static] | Layer
|  | RESOLUTION_TOLERANCE : Number = 0.000001 [static] | Layer

Property detail

features | property

`features:Array` [read-only]Implementation
`public function get features():Array`

featuresBbox | property |

`featuresBbox:Bounds` [read-write]Implementation
`public function get featuresBbox():Bounds`
`public function set featuresBbox(value:Bounds):void`

geometryType | property |

`geometryType:String` [read-write]Implementation
`public function get geometryType():String`
`public function set geometryType(value:String):void`

inEditionMode | property |

`inEditionMode:Boolean` [read-write]Implementation
`public function get inEditionMode():Boolean`
`public function set inEditionMode(value:Boolean):void`

map | property |

`map:Map` [write-only]Implementation
`public function set map(value:Map):void`

selectedFeatures | property |

`selectedFeatures:Array` [read-write]Implementation
`public function get selectedFeatures():Array`
`public function set selectedFeatures(value:Array):void`

style | property |

`style:Style` [read-write]Implementation
`public function get style():Style`
`public function set style(value:Style):void`
Constructor detail

FeatureLayer | () | constructor

`public function FeatureLayer(name:String, isBaseLayer:Boolean = false, visible:Boolean = true, projection:String = null, proxy:String = null)`Parameters

| `name:String`
| `isBaseLayer:Boolean` (default = `false`)``
| `visible:Boolean` (default = `true`)``
| `projection:String` (default = `null`)``
| `proxy:String` (default = `null`)``

Method detail

addFeature | () | method

`public function addFeature(feature:Feature, dispatchFeatureEvent:Boolean = true):void`

Add Feature to the layer.

Parameters

| `feature:Feature` — The feature to add
| `dispatchFeatureEvent:Boolean` (default = `true`)``

addFeatures | () | method |

`public function addFeatures(features:Array):void`

Add Features to the layer.

Parameters

| `features:Array` — array

clear | () | method |

`public override function clear():void`

destroy | () | method |

`public override function destroy(setNewBaseLayer:Boolean = true):void` Parameters

| `setNewBaseLayer:Boolean` (default = `true`)``

draw | () | method |

`protected override function draw():void`

removeFeature | () | method |

`public function removeFeature(feature:Feature, dispatchFeatureEvent:Boolean = true):void` Parameters

| `feature:Feature`
| `dispatchFeatureEvent:Boolean` (default = `true`)``

removeFeatures | () | method |

`public function removeFeatures(features:Array):void` Parameters

| `features:Array`

reset | () | method |

`public override function reset():void`