Merge pull request #1896 from ahocevar/nodragclick

Add click event as responsive alternative to singleclick
This commit is contained in:
Andreas Hocevar
2014-04-03 13:34:14 +02:00
15 changed files with 46 additions and 20 deletions

View File

@@ -85,6 +85,6 @@ $(map.getViewport()).on('mousemove', function(evt) {
displayFeatureInfo(pixel);
});
map.on('singleclick', function(evt) {
map.on('click', function(evt) {
displayFeatureInfo(evt.pixel);
});