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

@@ -163,6 +163,7 @@ FeatureFormat.prototype.writeFeatures = function(features, opt_options) {};
*/
FeatureFormat.prototype.writeGeometry = function(geometry, opt_options) {};
export default FeatureFormat;
/**
* @param {ol.geom.Geometry|ol.Extent} geometry Geometry.
@@ -170,10 +171,8 @@ FeatureFormat.prototype.writeGeometry = function(geometry, opt_options) {};
* @param {(olx.format.WriteOptions|olx.format.ReadOptions)=} opt_options
* Options.
* @return {ol.geom.Geometry|ol.Extent} Transformed geometry.
* @protected
*/
FeatureFormat.transformWithOptions = function(
geometry, write, opt_options) {
export function transformWithOptions(geometry, write, opt_options) {
var featureProjection = opt_options ?
getProjection(opt_options.featureProjection) : null;
var dataProjection = opt_options ?
@@ -218,5 +217,4 @@ FeatureFormat.transformWithOptions = function(
transformed.applyTransform(transform);
}
return transformed;
};
export default FeatureFormat;
}