How can I select a feature in Openlayers 3 by right click it?

المشرف العام

Administrator
طاقم الإدارة
I'm trying to selete / delete a feature by right click it on Openlayers 3.I know I have map events singleclick/click/dblclick and I also know I can use the ol.interaction.Select for delete.

In openlayers 2 I recall I could use oncontextmenu.

How can I achieve such a thing using OL3 ?



أكثر...
 
أعلى