Map "click" event renamed to "singleclick"

As discussed with @tschaub in #1195.
This commit is contained in:
Éric Lemoine
2013-10-31 09:17:24 +01:00
parent 2c930d74b5
commit 8402eee0c3
13 changed files with 23 additions and 23 deletions

View File

@@ -46,7 +46,7 @@ var map = new ol.Map({
})
});
map.on('click', function(evt) {
map.on('singleclick', function(evt) {
map.getFeatureInfo({
pixel: evt.getPixel(),
success: function(featureInfoByLayer) {