OpenLayers.Tile

This is a class designed to designate a single tile, however it is explicitly designed to do relatively little.  Tiles store information about themselves -- such as the URL that they are related to, and their size - but do not add themselves to the layer div automatically, for example.  Create a new tile with the OpenLayers.Tile constructor, or a subclass.

TBD 3.0remove reference to url in above paragraph
Summary
OpenLayers.TileThis is a class designed to designate a single tile, however it is explicitly designed to do relatively little.
Properties
events{OpenLayers.Events} An events object that handles all events on the tile.
eventListeners{Object} If set as an option at construction, the eventListeners object will be registered with OpenLayers.Events.on.
bounds{OpenLayers.Bounds} null
Functions
destroyNullify references to prevent circular references and memory leaks.

Properties

events

{OpenLayers.Events} An events object that handles all events on the tile.

eventListeners

{Object} If set as an option at construction, the eventListeners object will be registered with OpenLayers.Events.on.  Object structure must be a listeners object as shown in the example for the events.on method.

This options can be set in the ``tileOptions`` option from OpenLayers.Layer.Grid.  For example, to be notified of the ``loadend`` event of each tiles:

new OpenLayers.Layer.OSM('osm', 'http://tile.openstreetmap.org/${z}/${x}/${y}.png', {
    tileOptions: {
        eventListeners: {
            'loadend': function(evt) {
                // do something on loadend
            }
        }
    }
});

bounds

Functions

destroy

destroy:function()

Nullify references to prevent circular references and memory leaks.

on: function(object)
Convenience method for registering listeners with a common scope.
Instances of this class represent bounding boxes.
destroy:function()
Nullify references to prevent circular references and memory leaks.
This is a class designed to designate a single tile, however it is explicitly designed to do relatively little.
Base class for layers that use a lattice of tiles.
Close