How delete a feature in Openlayers with `del` Key

المشرف العام

Administrator
طاقم الإدارة
I'm using OpenLayers-3.8.2 for developing an GIS application. Users draw some features and can modify all existing features on map. They can delete features. I can delete feature as follow:

  1. user click some features
  2. User click on a button and then: layer.removeFeature(feature)
Now I want to user can remove features with del key.

What do I implement it?



أكثر...
 
أعلى