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

@@ -64,7 +64,7 @@ var map = new ol.Map({
$(map.getViewport()).on('mousemove', function(e) {
var pixel = map.getEventPixel(e.originalEvent);
var hit = map.forEachFeatureAtPixel(pixel, function(feature) {
var hit = map.forEachFeatureAtPixel(pixel, function(feature, layer) {
return true;
});