Merge pull request #6976 from ehanoj/patch-1

Example - Earthquake Clusters - Change evt.type of interaction
This commit is contained in:
Andreas Hocevar
2017-07-26 16:03:46 +02:00
committed by GitHub

View File

@@ -144,7 +144,7 @@ var map = new ol.Map({
layers: [raster, vector],
interactions: ol.interaction.defaults().extend([new ol.interaction.Select({
condition: function(evt) {
return evt.originalEvent.type == 'mousemove' ||
return evt.type == 'pointermove' ||
evt.type == 'singleclick';
},
style: selectStyleFunction