Class: DeleteFeature

DeleteFeature

new DeleteFeature(layer, options)

An Open Layers control for deleting features.
Extends OpenLayers.Control
The options passed as a parameter directly extend the control. For example passing the following:
var control = new OpenLayers.Control.DeleteFeature({div: myDiv});
Overrides the default div attribute value of null.
Parameters:
Name Type Description
layer OpenLayers.Layer.Vector The layer this control is attached to
options Object

Members

(constant) CLASS_NAME :string

The name of this class
Type:
  • string

Methods

setMap(map)

Set the map property for the control. This is done through an accessor so that subclasses can override this and take special action once they have their map variable set.
Parameters:
Name Type Description
map OpenLayers.Map