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
This commit is contained in:
euzuro
2006-07-18 14:19:12 +00:00
parent 17426fcfc4
commit 3c4d324f12

View File

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