Use event properties in ol.interaction.Select

This commit is contained in:
Tom Payne
2014-01-29 15:40:53 +01:00
parent 21e960d6a5
commit 9c91cb4fe4

View File

@@ -91,7 +91,7 @@ ol.interaction.Select.prototype.handleMapBrowserEvent =
*/
function() {
if (add) {
map.forEachFeatureAtPixel(mapBrowserEvent.getPixel(),
map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
/**
* @param {ol.Feature} feature Feature.
* @param {ol.layer.Layer} layer Layer.
@@ -102,7 +102,7 @@ ol.interaction.Select.prototype.handleMapBrowserEvent =
}
}, undefined, this.layerFilter_);
} else {
var feature = map.forEachFeatureAtPixel(mapBrowserEvent.getPixel(),
var feature = map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
/**
* @param {ol.Feature} feature Feature.
* @param {ol.layer.Layer} layer Layer.