Use undefined, not null, found in parallel with @elemoine
This commit is contained in:
+1
-1
@@ -318,7 +318,7 @@ ol.Map.prototype.getCoordinateFromPixel = function(pixel) {
|
|||||||
var y = center.y - resolution * (pixel.y - size.height / 2);
|
var y = center.y - resolution * (pixel.y - size.height / 2);
|
||||||
return new ol.Coordinate(x, y);
|
return new ol.Coordinate(x, y);
|
||||||
} else {
|
} else {
|
||||||
return null;
|
return undefined;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user