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:
@@ -11,12 +11,19 @@ OpenLayers.Layer.WFS.prototype =
|
|||||||
Object.extend(new OpenLayers.Layer.Grid(),
|
Object.extend(new OpenLayers.Layer.Grid(),
|
||||||
Object.extend(new OpenLayers.Layer.Markers(), {
|
Object.extend(new OpenLayers.Layer.Markers(), {
|
||||||
|
|
||||||
/** Allow the user to specify a special class to use to display features.
|
/** Allow the user to specify special classes for features and tiles.
|
||||||
* This allows for easy-definition of feature behaviour. This property
|
*
|
||||||
* should be set via the "options" parameter.
|
* This allows for easy-definition of behaviour. The defaults are
|
||||||
* @type Object */
|
* set here, but to override it, the property should be set via
|
||||||
|
* the "options" parameter.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @type Object */
|
||||||
featureClass: OpenLayers.Feature.WFS,
|
featureClass: OpenLayers.Feature.WFS,
|
||||||
|
|
||||||
|
/** @type Object */
|
||||||
|
tileClass: OpenLayers.Tile.WFS,
|
||||||
|
|
||||||
/** @final @type hash */
|
/** @final @type hash */
|
||||||
DEFAULT_PARAMS: { service: "WFS",
|
DEFAULT_PARAMS: { service: "WFS",
|
||||||
version: "1.0.0",
|
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);
|
urls, this.tileSize);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user