Named exports from ol/geom/flat/area

This commit is contained in:
Frederic Junod
2018-01-26 15:31:04 +01:00
parent e6a491856d
commit 135f713236
6 changed files with 20 additions and 26 deletions

View File

@@ -10,7 +10,7 @@ import LinearRing from '../geom/LinearRing.js';
import Point from '../geom/Point.js';
import SimpleGeometry from '../geom/SimpleGeometry.js';
import {offset as sphereOffset} from '../sphere.js';
import _ol_geom_flat_area_ from '../geom/flat/area.js';
import {linearRings as linearRingsArea} from '../geom/flat/area.js';
import _ol_geom_flat_closest_ from '../geom/flat/closest.js';
import _ol_geom_flat_contains_ from '../geom/flat/contains.js';
import _ol_geom_flat_deflate_ from '../geom/flat/deflate.js';
@@ -152,8 +152,7 @@ Polygon.prototype.containsXY = function(x, y) {
* @api
*/
Polygon.prototype.getArea = function() {
return _ol_geom_flat_area_.linearRings(
this.getOrientedFlatCoordinates(), 0, this.ends_, this.stride);
return linearRingsArea(this.getOrientedFlatCoordinates(), 0, this.ends_, this.stride);
};