A bit of docs for the removeFeatures method.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@8725 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -505,10 +505,20 @@ OpenLayers.Layer.Vector = OpenLayers.Class(OpenLayers.Layer, {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* APIMethod: removeFeatures
|
* APIMethod: removeFeatures
|
||||||
|
* Remove features from the layer. This erases any drawn features and
|
||||||
|
* removes them from the layer's control. The beforefeatureremoved
|
||||||
|
* and featureremoved events will be triggered for each feature. The
|
||||||
|
* featuresremoved event will be triggered after all features have
|
||||||
|
* been removed. To supress event triggering, use the silent option.
|
||||||
*
|
*
|
||||||
* Parameters:
|
* Parameters:
|
||||||
* features - {Array(<OpenLayers.Feature.Vector>)}
|
* features - {Array(<OpenLayers.Feature.Vector>)} List of features to be
|
||||||
* options - {Object}
|
* removed.
|
||||||
|
* options - {Object} Optional properties for changing behavior of the
|
||||||
|
* removal.
|
||||||
|
*
|
||||||
|
* Valid options:
|
||||||
|
* silent - {Boolean} Supress event triggering. Default is false.
|
||||||
*/
|
*/
|
||||||
removeFeatures: function(features, options) {
|
removeFeatures: function(features, options) {
|
||||||
if(!features || features.length === 0) {
|
if(!features || features.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user