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

@@ -82,7 +82,7 @@ $(map.getViewport()).on('mousemove', function(evt) {
displayFeatureInfo(pixel);
});
map.on('click', function(evt) {
map.on('singleclick', function(evt) {
var pixel = evt.getPixel();
displayFeatureInfo(pixel);
});