Add named export for transformWithOptions function
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import {extend} from '../array.js';
|
||||
import _ol_Feature_ from '../Feature.js';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import {transformWithOptions} from '../format/Feature.js';
|
||||
import XMLFeature from '../format/XMLFeature.js';
|
||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||
import LineString from '../geom/LineString.js';
|
||||
@@ -57,7 +57,7 @@ OSMXML.readNode_ = function(node, objectStack) {
|
||||
}, OSMXML.NODE_PARSERS_, node, objectStack);
|
||||
if (!_ol_obj_.isEmpty(values.tags)) {
|
||||
var geometry = new Point(coordinates);
|
||||
FeatureFormat.transformWithOptions(geometry, false, options);
|
||||
transformWithOptions(geometry, false, options);
|
||||
var feature = new _ol_Feature_(geometry);
|
||||
feature.setId(id);
|
||||
feature.setProperties(values.tags);
|
||||
@@ -192,7 +192,7 @@ OSMXML.prototype.readFeaturesFromNode = function(node, opt_options) {
|
||||
geometry = new LineString(null);
|
||||
geometry.setFlatCoordinates(GeometryLayout.XY, flatCoordinates);
|
||||
}
|
||||
FeatureFormat.transformWithOptions(geometry, false, options);
|
||||
transformWithOptions(geometry, false, options);
|
||||
var feature = new _ol_Feature_(geometry);
|
||||
feature.setId(values.id);
|
||||
feature.setProperties(values.tags);
|
||||
|
||||
Reference in New Issue
Block a user