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); },