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

Package | org.openscales.core.tile
Class | public class ImageTile
Inheritance | ImageTile Tile flash.display.Sprite

Image tile are used for example in WMS-C layers to display an image part of the Grid layer.

Public Properties
Hide Inherited Public Properties
Show Inherited Public Properties

| Property | Defined by
--- | --- | ---
|  | bounds : Bounds | Tile
|  | drawn : Boolean | Tile
|  | layer : Layer | Tile
|  | loadComplete : Boolean Whether or not the tile is loading | Tile
|  | onLoadEnd : Function | Tile
|  | onLoadStart : Function | Tile
|  | position : Pixel | Tile
|  | queued : Boolean | ImageTile
|  | size : Size | Tile
|  | url : String | Tile

Protected Properties
Hide Inherited Protected Properties
Show Inherited Protected Properties

| Property | Defined by
--- | --- | ---
|  | _drawPosition : Pixel = null | Tile
|  | loading : Boolean Used to set loading status of tile | Tile

Public Methods
Hide Inherited Public Methods
Show Inherited Public Methods

| Method | Defined by
--- | --- | ---
|  | ImageTile(layer:Layer, position:Pixel, bounds:Bounds, url:String, size:Size) | ImageTile
|  | clear():void Clear the tile of any bounds/position-related data | ImageTile
|  | clearAndMoveTo(bounds:Bounds, position:Pixel, redraw:Boolean = true):void Reposition the tile. | Tile
|  | destroy():void | ImageTile
|  | draw():Boolean Check that a tile should be drawn, and draw it. | ImageTile
|  | getBoundsFromBaseLayer(position:Pixel):Bounds Take the pixel locations of the corner of the tile, and pass them to the base layer and ask for the location of those pixels | Tile
|  | moveTo(bounds:Bounds, position:Pixel, redraw:Boolean = true):void | Tile
|  | onTileLoadEnd(event:Event):void | ImageTile
|  | onTileLoadError(event:IOErrorEvent):void | ImageTile
|  | withinMapBounds():Boolean | Tile

Property detail

queued | property

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

ImageTile | () | constructor

`public function ImageTile(layer:Layer, position:Pixel, bounds:Bounds, url:String, size:Size)`Parameters

| `layer:Layer`
| `position:Pixel`
| `bounds:Bounds`
| `url:String`
| `size:Size`

Method detail

clear | () | method

`public override function clear():void`

Clear the tile of any bounds/position-related data

destroy | () | method |

`public override function destroy():void`

draw | () | method |

`public override function draw():Boolean`

Check that a tile should be drawn, and draw it.

Returns

| `Boolean` — Always returns true.

onTileLoadEnd | () | method |

`public function onTileLoadEnd(event:Event):void` Parameters

| `event:Event`

onTileLoadError | () | method |

`public function onTileLoadError(event:IOErrorEvent):void` Parameters

| `event:IOErrorEvent`