From 50107e115aa11e797f2cc8a03ea54bbb3b259e0e Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Sat, 23 May 2020 21:22:02 +0200 Subject: [PATCH] Use assign function instead of Object.assign --- src/ol/format/EsriJSON.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ol/format/EsriJSON.js b/src/ol/format/EsriJSON.js index 14600cccd3..54294236bd 100644 --- a/src/ol/format/EsriJSON.js +++ b/src/ol/format/EsriJSON.js @@ -13,10 +13,10 @@ import MultiPolygon from '../geom/MultiPolygon.js'; import Point from '../geom/Point.js'; import Polygon from '../geom/Polygon.js'; import {assert} from '../asserts.js'; +import {assign, isEmpty} from '../obj.js'; import {containsExtent} from '../extent.js'; import {deflateCoordinates} from '../geom/flat/deflate.js'; import {get as getProjection} from '../proj.js'; -import {isEmpty} from '../obj.js'; import {linearRingIsClockwise} from '../geom/flat/orient.js'; import {transformGeometryWithOptions} from './Feature.js'; @@ -273,10 +273,10 @@ function readGeometry(object, opt_options) { const rings = convertRings(esriJSONPolygon.rings, layout); if (rings.length === 1) { type = GeometryType.POLYGON; - object = Object.assign({}, object, {['rings']: rings[0]}); + object = assign({}, object, {['rings']: rings[0]}); } else { type = GeometryType.MULTI_POLYGON; - object = Object.assign({}, object, {['rings']: rings}); + object = assign({}, object, {['rings']: rings}); } } const geometryReader = GEOMETRY_READERS[type];