No array needed for a single event
Thanks @bartvde.
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user