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

@@ -9,7 +9,7 @@ import GeometryType from '../geom/GeometryType.js';
import MultiPoint from '../geom/MultiPoint.js';
import Polygon from '../geom/Polygon.js';
import SimpleGeometry from '../geom/SimpleGeometry.js';
import _ol_geom_flat_area_ from '../geom/flat/area.js';
import {linearRingss as linearRingssArea} from '../geom/flat/area.js';
import _ol_geom_flat_center_ from '../geom/flat/center.js';
import _ol_geom_flat_closest_ from '../geom/flat/closest.js';
import _ol_geom_flat_contains_ from '../geom/flat/contains.js';
@@ -162,8 +162,7 @@ MultiPolygon.prototype.containsXY = function(x, y) {
* @api
*/
MultiPolygon.prototype.getArea = function() {
return _ol_geom_flat_area_.linearRingss(
this.getOrientedFlatCoordinates(), 0, this.endss_, this.stride);
return linearRingssArea(this.getOrientedFlatCoordinates(), 0, this.endss_, this.stride);
};