Merge pull request #6867 from cs09g/cs09g-patch-1

add getArea to api
This commit is contained in:
Frédéric Junod
2017-06-01 08:20:30 +02:00
committed by GitHub

View File

@@ -426,8 +426,10 @@ ol.extent.forEachCorner = function(extent, callback, opt_this) {
/**
* Get the size of an extent.
* @param {ol.Extent} extent Extent.
* @return {number} Area.
* @api
*/
ol.extent.getArea = function(extent) {
var area = 0;