ICanvasTile

Extends ITile.

Interface for tiles that can be displayed in the canvas object's 2d context.

Constructor | Fields | Events | Methods

Constructor

ICanvasTile(url)

Parameters:

ParameterDefault valueDescription
url *

Type: String

Tile URL.

* Mandatory parameter/option.

Fields

NameTypeDescription
eventsIEventManager

Event manager.

Inherited from IEventEmitter.

Events

NameDescription
ready

Tile ready event.

Inherited from ITile.

Methods

NameReturnsDescription
destroy()

Destroys the tile.

Inherited from ITile.

isReady()

Boolean

Checks tile readiness.

Inherited from ITile.

renderAt(context, canvasSize, bounds[, animate])

Draws an image tile in the canvas object's 2d context.

Methods details

renderAt

{} renderAt(context, canvasSize, bounds[, animate])

Draws an image tile in the canvas object's 2d context.

Parameters:

ParameterDefault valueDescription
context *

Type: Object

2D context of the canvas object.

canvasSize *

Type: Number[]

Dimensions of the canvas HTML element.

bounds *

Type: Number[][]

Area in client coordinates where the tile should be drawn.

animatefalse

Type: Boolean

If true, rendering is animated; if false, it is not.

* Mandatory parameter/option.