Add layer to forEachFeatureAtPixel callbacks in examples

This commit is contained in:
Tom Payne
2013-12-02 16:46:24 +01:00
parent e9267e401c
commit 5acc673c68
3 changed files with 7 additions and 6 deletions

View File

@@ -59,7 +59,7 @@ var highlight;
var displayFeatureInfo = function(pixel) {
var oldHighlight = highlight;
var feature = map.forEachFeatureAtPixel(pixel, function(feature) {
var feature = map.forEachFeatureAtPixel(pixel, function(feature, layer) {
return feature;
});