add getArea to api

#6854
This commit is contained in:
Chase(Seul-gi Choi)
2017-06-01 11:44:44 +09:00
committed by GitHub
parent b8b2712f73
commit 23cb98272c

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;