Class: Delete

ol.interaction. Delete

A Select interaction to delete features on click.


new Delete(options)

Parameters:
Name Type Description
options Object

ol.interaction.Select options

Fires:
  • event:deletestart
  • event:deleteend

Extends

  • ol.interaction.Interaction

Methods


_getSources()

Get vector source of the map

Returns:
Type
Array.<ol.source.Vector>

delete(features)

Delete features: remove the features from the map (from all layers in the map)

Parameters:
Name Type Description
features ol.Collection.<ol.Feature> | Array.<ol.Feature>

The features to delete