No array needed for a single event

Thanks @bartvde.
This commit is contained in:
ahocevar
2013-08-08 13:19:26 +02:00
parent 58949ed856
commit c1746f2549
+1 -1
View File
@@ -48,7 +48,7 @@ var map = new ol.Map({
}) })
}); });
map.on(['click'], function(evt) { map.on('click', function(evt) {
map.getFeatureInfo({ map.getFeatureInfo({
pixel: evt.getPixel(), pixel: evt.getPixel(),
success: function(featureInfoByLayer) { success: function(featureInfoByLayer) {