Remove call to deprecated events.addEventType function
This commit is contained in:
@@ -138,6 +138,26 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
*/
|
*/
|
||||||
backBufferLonLat: null,
|
backBufferLonLat: null,
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register a listener for a particular event with the following syntax:
|
||||||
|
* (code)
|
||||||
|
* layer.events.register(type, obj, listener);
|
||||||
|
* (end)
|
||||||
|
*
|
||||||
|
* Listeners will be called with a reference to an event object. The
|
||||||
|
* properties of this event depends on exactly what happened.
|
||||||
|
*
|
||||||
|
* All event objects have at least the following properties:
|
||||||
|
* object - {Object} A reference to layer.events.object.
|
||||||
|
* element - {DOMElement} A reference to layer.events.element.
|
||||||
|
*
|
||||||
|
* Supported event types:
|
||||||
|
* tileloaded - Triggered when each new tile is
|
||||||
|
* loaded, as a means of progress update to listeners.
|
||||||
|
* listeners can access 'numLoadingTiles' if they wish to keep
|
||||||
|
* track of the loading progress.
|
||||||
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor: OpenLayers.Layer.Grid
|
* Constructor: OpenLayers.Layer.Grid
|
||||||
* Create a new grid layer
|
* Create a new grid layer
|
||||||
@@ -151,14 +171,6 @@ OpenLayers.Layer.Grid = OpenLayers.Class(OpenLayers.Layer.HTTPRequest, {
|
|||||||
initialize: function(name, url, params, options) {
|
initialize: function(name, url, params, options) {
|
||||||
OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this,
|
OpenLayers.Layer.HTTPRequest.prototype.initialize.apply(this,
|
||||||
arguments);
|
arguments);
|
||||||
|
|
||||||
//grid layers will trigger 'tileloaded' when each new tile is
|
|
||||||
// loaded, as a means of progress update to listeners.
|
|
||||||
// listeners can access 'numLoadingTiles' if they wish to keep track
|
|
||||||
// of the loading progress
|
|
||||||
//
|
|
||||||
this.events.addEventType("tileloaded");
|
|
||||||
|
|
||||||
this.grid = [];
|
this.grid = [];
|
||||||
|
|
||||||
this._moveGriddedTiles = OpenLayers.Function.bind(
|
this._moveGriddedTiles = OpenLayers.Function.bind(
|
||||||
|
|||||||
Reference in New Issue
Block a user