Fix forEachCorner extent, add TopLeft

This commit is contained in:
Alexandre Dubé
2015-02-20 08:30:39 -05:00
parent c30373963e
commit e1336e1891

View File

@@ -463,7 +463,7 @@ ol.extent.forEachCorner = function(extent, callback, opt_this) {
if (val) {
return val;
}
val = callback.call(opt_this, ol.extent.getBottomRight(extent));
val = callback.call(opt_this, ol.extent.getTopLeft(extent));
if (val) {
return val;
}