---
metadata:
  - name: generator
    content: Diplodoc Platform v5.39.1
alternate:
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICanvasTile.md
  - https://yandex.com.tr/dev/jsapi-v2-1/doc/ru/v2-1/ref/reference/ICanvasTile.md
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com.tr/dev/jsapi-v2-1/doc/en/llms.txt

# ICanvasTile

Extends [ITile](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md).

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

[Constructor](#constructor-summary) | [Fields](#properties-summary) | [Events](#events-summary) | [Methods](#methods-summary)

## Constructor {#constructor-summary}

```javascript
ICanvasTile(url)
```

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`url`](#param-url)[*](*star) | — | Type: String

Tile URL. ||
|#

\* Mandatory parameter/option.

## Fields {#properties-summary}

#|
|| **Name** | **Type** | **Description** ||
|| [events](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events) | [IEventManager](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventManager.md) | Event manager.

Inherited from [IEventEmitter](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/IEventEmitter.md#events). ||
|#

## Events {#events-summary}

#|
|| **Name** | **Description** ||
|| [ready](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md#event-ready) | Tile ready event.

Inherited from [ITile](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md#event-ready). ||
|#

## Methods {#methods-summary}

#|
|| **Name** | **Returns** | **Description** ||
|| [destroy](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md#destroy)() | | Destroys the tile.

Inherited from [ITile](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md#destroy). ||
|| [isReady](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md#isReady)() | Boolean | Checks tile readiness.

Inherited from [ITile](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ITile.md#isReady). ||
|| [renderAt](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICanvasTile.md#renderAt)([context](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICanvasTile.md#renderAt-param-context), [canvasSize](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICanvasTile.md#renderAt-param-canvasSize), [bounds](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICanvasTile.md#renderAt-param-bounds)[, [animate](https://yandex.com.tr/dev/jsapi-v2-1/doc/en/v2-1/ref/reference/ICanvasTile.md#renderAt-param-animate)]) | | Draws an image tile in the canvas object's 2d context.||
|#

## Methods details {#method_detail}

### renderAt {#renderAt}

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

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

**Parameters:**

#|
|| **Parameter** | **Default value** | **Description**  ||
|| [`context`](#renderAt-param-context)[*](*star) | — | Type: Object

2D context of the canvas object. ||
|| [`canvasSize`](#renderAt-param-canvasSize)[*](*star) | — | Type: Number[]

Dimensions of the canvas HTML element. ||
|| [`bounds`](#renderAt-param-bounds)[*](*star) | — | Type: Number[][]

Area in client coordinates where the tile should be drawn. ||
|| [`animate`](#renderAt-param-animate) | false | Type: Boolean

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

\* Mandatory parameter/option.

[*star]: Mandatory parameter/option.