I would like my KML layer in OpenLayers 3 (OL3) to respond to different types of click events.
I have a single click method working nicely. But how do I get it working for "shift-clicks" "double clicks" etc?
map.on('singleclick', function(evt) {
var feature = map.forEachFeatureAtPixel(evt.pixel,
function(feature, layer) {
// do stuff here with feature
return [feature, layer];
});
});
This was a good start, but I can't quite put the OL3 API documentation together.