Convert ol.MapBrowserEvent#get* methods into properties
This commit is contained in:
@@ -151,6 +151,5 @@ $(map.getViewport()).on('mousemove', function(evt) {
|
||||
});
|
||||
|
||||
map.on('singleclick', function(evt) {
|
||||
var pixel = evt.getPixel();
|
||||
displayFeatureInfo(pixel);
|
||||
displayFeatureInfo(evt.pixel);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user