Convert ol.MapBrowserEvent#get* methods into properties

This commit is contained in:
Tom Payne
2014-01-27 16:07:34 +01:00
parent 390b61762e
commit 318fc68159
26 changed files with 89 additions and 87 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ map.addOverlay(popup);
// display popup on click
map.on('singleclick', function(evt) {
var feature = map.forEachFeatureAtPixel(evt.getPixel(),
var feature = map.forEachFeatureAtPixel(evt.pixel,
function(feature, layer) {
return feature;
});