Determine the callback count while iterating through all layers

Previously, if a layer didn't have a `getFeature*ForPixel` type method, the loop count would be decremented.  This means that all layers would not be considered.  Instead, the callback count should be incremented before requests are made and decremented in the callback.
This commit is contained in:
Tim Schaub
2013-11-12 22:20:31 -07:00
parent b9a4ae5e77
commit 22da054774
3 changed files with 10 additions and 14 deletions

View File

@@ -47,9 +47,7 @@ var vector = new ol.layer.Vector({
})
});
var select = new ol.interaction.Select({
layers: [vector]
});
var select = new ol.interaction.Select();
var map = new ol.Map({
interactions: ol.interaction.defaults().extend([select]),