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

@@ -3,7 +3,7 @@
*/
import {inherits} from '../index.js';
import {createOrUpdate} from '../extent.js';
import FeatureFormat from '../format/Feature.js';
import {transformWithOptions} from '../format/Feature.js';
import GMLBase from '../format/GMLBase.js';
import XSD from '../format/XSD.js';
import Geometry from '../geom/Geometry.js';
@@ -295,8 +295,7 @@ GML2.prototype.writeGeometryElement = function(node, geometry, objectStack) {
value = geometry;
}
} else {
value =
FeatureFormat.transformWithOptions(/** @type {ol.geom.Geometry} */ (geometry), true, context);
value = transformWithOptions(/** @type {ol.geom.Geometry} */ (geometry), true, context);
}
_ol_xml_.pushSerializeAndPop(/** @type {ol.XmlNodeStackItem} */
(item), GML2.GEOMETRY_SERIALIZERS_,