From e1336e1891cd9da75a8fdb84c5efb9f628c21467 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexandre=20Dub=C3=A9?= Date: Fri, 20 Feb 2015 08:30:39 -0500 Subject: [PATCH] Fix forEachCorner extent, add TopLeft --- src/ol/extent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/extent.js b/src/ol/extent.js index ae16a97163..1b6a9ac488 100644 --- a/src/ol/extent.js +++ b/src/ol/extent.js @@ -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; }