From 3c4d324f12b4f26d91b259917f694e06b2b6858b Mon Sep 17 00:00:00 2001 From: euzuro Date: Tue, 18 Jul 2006 14:19:12 +0000 Subject: [PATCH] allow for user to specify an alternate tile class to use with WFS git-svn-id: http://svn.openlayers.org/trunk/openlayers@964 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Layer/WFS.js | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/OpenLayers/Layer/WFS.js b/lib/OpenLayers/Layer/WFS.js index 1fdede2092..f3f7bdc167 100644 --- a/lib/OpenLayers/Layer/WFS.js +++ b/lib/OpenLayers/Layer/WFS.js @@ -11,12 +11,19 @@ OpenLayers.Layer.WFS.prototype = Object.extend(new OpenLayers.Layer.Grid(), Object.extend(new OpenLayers.Layer.Markers(), { - /** Allow the user to specify a special class to use to display features. - * This allows for easy-definition of feature behaviour. This property - * should be set via the "options" parameter. - * @type Object */ + /** Allow the user to specify special classes for features and tiles. + * + * This allows for easy-definition of behaviour. The defaults are + * set here, but to override it, the property should be set via + * the "options" parameter. + */ + + /** @type Object */ featureClass: OpenLayers.Feature.WFS, + /** @type Object */ + tileClass: OpenLayers.Tile.WFS, + /** @final @type hash */ DEFAULT_PARAMS: { service: "WFS", version: "1.0.0", @@ -132,7 +139,7 @@ OpenLayers.Layer.WFS.prototype = } } - return new OpenLayers.Tile.WFS(this, position, bounds, + return new this.tileClass(this, position, bounds, urls, this.tileSize); },