Documentation
Reference
2.1.50 (current version)
collection
interactivityModel
Interfaces
2.1.52 (release candidate)
collection
interactivityModel
Interfaces

layer.tile.DomTile

Extends IDomTile.

Image tile. Can draw the specified image via the CSS "background" property of the DOM element.

Constructor | Fields | Events | Methods

Constructor

layer.tile.DomTile(url[, options])

Creates an image DOM tile. Accessible in the storage for tile classes by the key "default#dom". Creates an image DOM tile.

Parameters:

ParameterDefault valueDescription
url *
[no-highlight[

* Mandatory parameter/option.

]no-highlight]

Type: String

URL of the image.

options

Type: Object

Options.

options.notFoundTile null

Type: String|null

Option that specifies the URL for downloading an image if the tile image didn't load. If the value is null, a standard tile is displayed with a text message. For transparent tiles, the notFoundTile option is not applied, and nothing is shown in place of tiles that didn't load.

options.tileAnimationDuration

Type: Number

Duration of animation of image transparency when drawing, in ms (only applies in browsers that support CSS Transition for the "opacity" property). The default value depends on the browser.

* Mandatory parameter/option.

Fields

NameTypeDescription
eventsIEventManager

Tile event manager.

Inherited from IDomTile.

Events

NameDescription
ready

Tile ready event.

Inherited from IDomTile.

Methods

NameReturnsDescription
destroy()

Destroys the tile.

Inherited from IDomTile.

isReady()

Boolean

Checks tile readiness.

Inherited from IDomTile.

renderAt(context, clientBounds, animate)

Adds a tile to the parent HTML element.

Inherited from IDomTile.