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

Package | org.openscales.core.control
Class | public class LayerSwitcher
Inheritance | LayerSwitcher Control flash.display.Sprite

Create a layerSwitcher that display all the layer load on the map

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | active : Boolean | Control
|  | map : Map [write-only] Get the existing map | LayerSwitcher
|  | position : Pixel | Control

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _active : Boolean = false | Control
|  | _map : Map = null | Control

Public Methods

| Method | Defined by
--- | --- | ---
|  | LayerSwitcher(position:Pixel = null) LayerSwitcher constructor | LayerSwitcher
|  | destroy():void Hide the LayerSwitcher | LayerSwitcher
|  | draw():void Show the LayerSwitcher | LayerSwitcher
|  | resize(event:MapEvent):void Resize the map | LayerSwitcher

Property detail

map | property

`map:Map` [write-only]

Get the existing map

Implementation
`public function set map(value:Map):void`
Constructor detail

LayerSwitcher | () | constructor

`public function LayerSwitcher(position:Pixel = null)`

LayerSwitcher constructor

Parameters

| `position:Pixel` (default = `null`)``

Method detail

destroy | () | method

`public override function destroy():void`

Hide the LayerSwitcher

draw | () | method |

`public override function draw():void`

Show the LayerSwitcher

resize | () | method |

`public override function resize(event:MapEvent):void`

Resize the map

Parameters

| `event:MapEvent` — MapEvent