diff --git a/examples/getfeatureinfo.js b/examples/getfeatureinfo.js index 5c9c4b9191..02f3bc06ee 100644 --- a/examples/getfeatureinfo.js +++ b/examples/getfeatureinfo.js @@ -48,7 +48,7 @@ var map = new ol.Map({ }) }); -map.on(['click'], function(evt) { +map.on('click', function(evt) { map.getFeatureInfo({ pixel: evt.getPixel(), success: function(featureInfoByLayer) {