Merge pull request #1618 from twpayne/fix-select-interaction
Use event properties in ol.interaction.Select
This commit is contained in:
@@ -91,7 +91,7 @@ ol.interaction.Select.prototype.handleMapBrowserEvent =
|
|||||||
*/
|
*/
|
||||||
function() {
|
function() {
|
||||||
if (add) {
|
if (add) {
|
||||||
map.forEachFeatureAtPixel(mapBrowserEvent.getPixel(),
|
map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
* @param {ol.layer.Layer} layer Layer.
|
* @param {ol.layer.Layer} layer Layer.
|
||||||
@@ -102,7 +102,7 @@ ol.interaction.Select.prototype.handleMapBrowserEvent =
|
|||||||
}
|
}
|
||||||
}, undefined, this.layerFilter_);
|
}, undefined, this.layerFilter_);
|
||||||
} else {
|
} else {
|
||||||
var feature = map.forEachFeatureAtPixel(mapBrowserEvent.getPixel(),
|
var feature = map.forEachFeatureAtPixel(mapBrowserEvent.pixel,
|
||||||
/**
|
/**
|
||||||
* @param {ol.Feature} feature Feature.
|
* @param {ol.Feature} feature Feature.
|
||||||
* @param {ol.layer.Layer} layer Layer.
|
* @param {ol.layer.Layer} layer Layer.
|
||||||
|
|||||||
Reference in New Issue
Block a user