diff --git a/src/ol/base/map.js b/src/ol/base/map.js index 2184dc8766..821c2868f8 100644 --- a/src/ol/base/map.js +++ b/src/ol/base/map.js @@ -318,7 +318,7 @@ ol.Map.prototype.getCoordinateFromPixel = function(pixel) { var y = center.y - resolution * (pixel.y - size.height / 2); return new ol.Coordinate(x, y); } else { - return null; + return undefined; } };