Add named export for transformWithOptions function

This commit is contained in:
Frederic Junod
2017-12-22 15:25:02 +01:00
parent a0b68010b9
commit 3843beafa7
14 changed files with 40 additions and 50 deletions

View File

@@ -7,7 +7,7 @@
import {inherits} from '../index.js';
import {assert} from '../asserts.js';
import _ol_Feature_ from '../Feature.js';
import FeatureFormat from '../format/Feature.js';
import {transformWithOptions} from '../format/Feature.js';
import JSONFeature from '../format/JSONFeature.js';
import GeometryCollection from '../geom/GeometryCollection.js';
import LineString from '../geom/LineString.js';
@@ -107,7 +107,7 @@ function readGeometry(object, opt_options) {
}
var geometryReader = GEOMETRY_READERS[object.type];
return (
/** @type {ol.geom.Geometry} */ FeatureFormat.transformWithOptions(
/** @type {ol.geom.Geometry} */ transformWithOptions(
geometryReader(object), false, opt_options)
);
}
@@ -193,8 +193,7 @@ function readPolygonGeometry(object) {
function writeGeometry(geometry, opt_options) {
var geometryWriter = GEOMETRY_WRITERS[geometry.getType()];
return geometryWriter(/** @type {ol.geom.Geometry} */ (
FeatureFormat.transformWithOptions(geometry, true, opt_options)),
opt_options);
transformWithOptions(geometry, true, opt_options)), opt_options);
}