Class: Delete

ol.interaction. Delete


new Delete(options)

A Select interaction to delete features on click.

Parameters:
Name Type Description
options *

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