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:

Parameter

Default value

Description

url*

—

Type: String

Tile URL.

* Mandatory parameter/option.

Fields

Name

Type

Description

events

IEventManager

Event manager.

Inherited from IEventEmitter.

Events

Name

Description

ready

Tile ready event.

Inherited from ITile.

Methods

Name

Returns

Description

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:

Parameter

Default value

Description

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.

animate

false

Type: Boolean

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

* Mandatory parameter/option.

Previous
Next