From d965444bead1e798fb56d53f5f3182e246198ff8 Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 5 Jun 2006 16:21:50 +0000 Subject: [PATCH] add a default addTile() class to grid. this is only a placeholder, as it is to be implemented by subclasses. git-svn-id: http://svn.openlayers.org/trunk/openlayers@517 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/Grid.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/lib/OpenLayers/Layer/Grid.js b/lib/OpenLayers/Layer/Grid.js index 10bf2f1e04..eb4f72c023 100644 --- a/lib/OpenLayers/Layer/Grid.js +++ b/lib/OpenLayers/Layer/Grid.js @@ -264,6 +264,20 @@ OpenLayers.Layer.Grid.prototype = Object.extend( new OpenLayers.Layer(), { } }, + /** + * addTile gives subclasses of Grid the opportunity to create an + * OpenLayer.Tile of their choosing. The implementer should initialize + * the new tile and take whatever steps necessary to display it. + * + * @param {OpenLayers.Bounds} bounds + * + * @returns The added OpenLayers.Tile + * @type OpenLayers.Tile + */ + addTile:function(bounds,position) { + // Should be implemented by subclasses + }, + /** @final @type String */ CLASS_NAME: "OpenLayers.Grid" });