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

@@ -5,7 +5,7 @@ import {inherits} from '../index.js';
import _ol_Feature_ from '../Feature.js';
import {assert} from '../asserts.js';
import {containsExtent} from '../extent.js';
import FeatureFormat from '../format/Feature.js';
import {transformWithOptions} from '../format/Feature.js';
import JSONFeature from '../format/JSONFeature.js';
import GeometryLayout from '../geom/GeometryLayout.js';
import GeometryType from '../geom/GeometryType.js';
@@ -84,7 +84,7 @@ EsriJSON.readGeometry_ = function(object, opt_options) {
}
var geometryReader = EsriJSON.GEOMETRY_READERS_[type];
return (
/** @type {ol.geom.Geometry} */ FeatureFormat.transformWithOptions(
/** @type {ol.geom.Geometry} */ transformWithOptions(
geometryReader(object), false, opt_options)
);
};
@@ -563,8 +563,7 @@ EsriJSON.prototype.readProjectionFromObject = function(object) {
EsriJSON.writeGeometry_ = function(geometry, opt_options) {
var geometryWriter = EsriJSON.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);
};