Merge pull request #7654 from fredj/ne_formats
Add named export for transformWithOptions function
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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_,
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import {extend} from '../array.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';
|
||||
@@ -962,8 +962,7 @@ GML3.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), GML3.GEOMETRY_SERIALIZERS_,
|
||||
|
||||
@@ -7,7 +7,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';
|
||||
@@ -205,7 +205,7 @@ GMLBase.prototype.readGeometryElement = function(node, objectStack) {
|
||||
this.GEOMETRY_PARSERS_, node, objectStack, this);
|
||||
if (geometry) {
|
||||
return (
|
||||
/** @type {ol.geom.Geometry} */ FeatureFormat.transformWithOptions(geometry, false, context)
|
||||
/** @type {ol.geom.Geometry} */ transformWithOptions(geometry, false, context)
|
||||
);
|
||||
} else {
|
||||
return undefined;
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_Feature_ from '../Feature.js';
|
||||
import {includes} from '../array.js';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import {transformWithOptions} from '../format/Feature.js';
|
||||
import XMLFeature from '../format/XMLFeature.js';
|
||||
import XSD from '../format/XSD.js';
|
||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||
@@ -541,7 +541,7 @@ function readRte(node, objectStack) {
|
||||
var layout = GPX.applyLayoutOptions_(layoutOptions, flatCoordinates);
|
||||
var geometry = new LineString(null);
|
||||
geometry.setFlatCoordinates(layout, flatCoordinates);
|
||||
FeatureFormat.transformWithOptions(geometry, false, options);
|
||||
transformWithOptions(geometry, false, options);
|
||||
var feature = new _ol_Feature_(geometry);
|
||||
feature.setProperties(values);
|
||||
return feature;
|
||||
@@ -573,7 +573,7 @@ function readTrk(node, objectStack) {
|
||||
var layout = GPX.applyLayoutOptions_(layoutOptions, flatCoordinates, ends);
|
||||
var geometry = new MultiLineString(null);
|
||||
geometry.setFlatCoordinates(layout, flatCoordinates, ends);
|
||||
FeatureFormat.transformWithOptions(geometry, false, options);
|
||||
transformWithOptions(geometry, false, options);
|
||||
var feature = new _ol_Feature_(geometry);
|
||||
feature.setProperties(values);
|
||||
return feature;
|
||||
@@ -595,7 +595,7 @@ function readWpt(node, objectStack) {
|
||||
var coordinates = appendCoordinate([], layoutOptions, node, values);
|
||||
var layout = GPX.applyLayoutOptions_(layoutOptions, coordinates);
|
||||
var geometry = new Point(coordinates, layout);
|
||||
FeatureFormat.transformWithOptions(geometry, false, options);
|
||||
transformWithOptions(geometry, false, options);
|
||||
var feature = new _ol_Feature_(geometry);
|
||||
feature.setProperties(values);
|
||||
return feature;
|
||||
@@ -776,8 +776,7 @@ function writeRte(node, feature, objectStack) {
|
||||
var context = {node: node, 'properties': properties};
|
||||
var geometry = feature.getGeometry();
|
||||
if (geometry) {
|
||||
geometry = /** @type {ol.geom.LineString} */
|
||||
(FeatureFormat.transformWithOptions(geometry, true, options));
|
||||
geometry = /** @type {ol.geom.LineString} */ (transformWithOptions(geometry, true, options));
|
||||
context['geometryLayout'] = geometry.getLayout();
|
||||
properties['rtept'] = geometry.getCoordinates();
|
||||
}
|
||||
@@ -803,7 +802,7 @@ function writeTrk(node, feature, objectStack) {
|
||||
var geometry = feature.getGeometry();
|
||||
if (geometry) {
|
||||
geometry = /** @type {ol.geom.MultiLineString} */
|
||||
(FeatureFormat.transformWithOptions(geometry, true, options));
|
||||
(transformWithOptions(geometry, true, options));
|
||||
properties['trkseg'] = geometry.getLineStrings();
|
||||
}
|
||||
var parentNode = objectStack[objectStack.length - 1].node;
|
||||
@@ -842,7 +841,7 @@ function writeWpt(node, feature, objectStack) {
|
||||
var geometry = feature.getGeometry();
|
||||
if (geometry) {
|
||||
geometry = /** @type {ol.geom.Point} */
|
||||
(FeatureFormat.transformWithOptions(geometry, true, options));
|
||||
(transformWithOptions(geometry, true, options));
|
||||
context['geometryLayout'] = geometry.getLayout();
|
||||
writeWptType(node, geometry.getCoordinates(), objectStack);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_Feature_ from '../Feature.js';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import {transformWithOptions} from '../format/Feature.js';
|
||||
import _ol_format_IGCZ_ from '../format/IGCZ.js';
|
||||
import TextFeature from '../format/TextFeature.js';
|
||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||
@@ -161,8 +161,7 @@ IGC.prototype.readFeatureFromText = function(text, opt_options) {
|
||||
var layout = altitudeMode == _ol_format_IGCZ_.NONE ?
|
||||
GeometryLayout.XYM : GeometryLayout.XYZM;
|
||||
lineString.setFlatCoordinates(layout, flatCoordinates);
|
||||
var feature = new _ol_Feature_(FeatureFormat.transformWithOptions(
|
||||
lineString, false, opt_options));
|
||||
var feature = new _ol_Feature_(transformWithOptions(lineString, false, opt_options));
|
||||
feature.setProperties(properties);
|
||||
return feature;
|
||||
};
|
||||
|
||||
@@ -6,7 +6,7 @@ import _ol_Feature_ from '../Feature.js';
|
||||
import {extend, includes} from '../array.js';
|
||||
import {assert} from '../asserts.js';
|
||||
import {asArray} from '../color.js';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import {transformWithOptions} from '../format/Feature.js';
|
||||
import XMLFeature from '../format/XMLFeature.js';
|
||||
import XSD from '../format/XSD.js';
|
||||
import GeometryCollection from '../geom/GeometryCollection.js';
|
||||
@@ -1709,7 +1709,7 @@ KML.prototype.readPlacemark_ = function(node, objectStack) {
|
||||
|
||||
var geometry = object['geometry'];
|
||||
if (geometry) {
|
||||
FeatureFormat.transformWithOptions(geometry, false, options);
|
||||
transformWithOptions(geometry, false, options);
|
||||
}
|
||||
feature.setGeometry(geometry);
|
||||
delete object['geometry'];
|
||||
@@ -2463,8 +2463,7 @@ KML.writePlacemark_ = function(node, feature, objectStack) {
|
||||
var options = /** @type {olx.format.WriteOptions} */ (objectStack[0]);
|
||||
var geometry = feature.getGeometry();
|
||||
if (geometry) {
|
||||
geometry =
|
||||
FeatureFormat.transformWithOptions(geometry, true, options);
|
||||
geometry = transformWithOptions(geometry, true, options);
|
||||
}
|
||||
_ol_xml_.pushSerializeAndPop(context, KML.PLACEMARK_SERIALIZERS_,
|
||||
KML.GEOMETRY_NODE_FACTORY_, [geometry], objectStack);
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
import {inherits} from '../index.js';
|
||||
import {assert} from '../asserts.js';
|
||||
import PBF from 'pbf';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import FeatureFormat, {transformWithOptions} from '../format/Feature.js';
|
||||
import FormatType from '../format/FormatType.js';
|
||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
@@ -322,7 +322,7 @@ MVT.prototype.createFeature_ = function(pbf, rawFeature, opt_options) {
|
||||
if (this.geometryName_) {
|
||||
feature.setGeometryName(this.geometryName_);
|
||||
}
|
||||
var geometry = FeatureFormat.transformWithOptions(geom, false, this.adaptOptions(opt_options));
|
||||
var geometry = transformWithOptions(geom, false, this.adaptOptions(opt_options));
|
||||
feature.setGeometry(geometry);
|
||||
feature.setId(id);
|
||||
feature.setProperties(values);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -4,7 +4,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 TextFeature from '../format/TextFeature.js';
|
||||
import GeometryLayout from '../geom/GeometryLayout.js';
|
||||
import LineString from '../geom/LineString.js';
|
||||
@@ -332,7 +332,7 @@ Polyline.prototype.readGeometryFromText = function(text, opt_options) {
|
||||
flatCoordinates, 0, flatCoordinates.length, stride);
|
||||
|
||||
return (
|
||||
/** @type {ol.geom.Geometry} */ FeatureFormat.transformWithOptions(
|
||||
/** @type {ol.geom.Geometry} */ transformWithOptions(
|
||||
new LineString(coordinates, this.geometryLayout_), false,
|
||||
this.adaptOptions(opt_options))
|
||||
);
|
||||
@@ -389,8 +389,7 @@ Polyline.prototype.writeGeometry;
|
||||
*/
|
||||
Polyline.prototype.writeGeometryText = function(geometry, opt_options) {
|
||||
geometry = /** @type {ol.geom.LineString} */
|
||||
(FeatureFormat.transformWithOptions(
|
||||
geometry, true, this.adaptOptions(opt_options)));
|
||||
(transformWithOptions(geometry, true, this.adaptOptions(opt_options)));
|
||||
var flatCoordinates = geometry.getFlatCoordinates();
|
||||
var stride = geometry.getStride();
|
||||
_ol_geom_flat_flip_.flipXY(
|
||||
|
||||
@@ -24,16 +24,15 @@ inherits(TextFeature, FeatureFormat);
|
||||
|
||||
/**
|
||||
* @param {Document|Node|Object|string} source Source.
|
||||
* @private
|
||||
* @return {string} Text.
|
||||
*/
|
||||
TextFeature.prototype.getText_ = function(source) {
|
||||
function getText(source) {
|
||||
if (typeof source === 'string') {
|
||||
return source;
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@@ -48,8 +47,7 @@ TextFeature.prototype.getType = function() {
|
||||
* @inheritDoc
|
||||
*/
|
||||
TextFeature.prototype.readFeature = function(source, opt_options) {
|
||||
return this.readFeatureFromText(
|
||||
this.getText_(source), this.adaptOptions(opt_options));
|
||||
return this.readFeatureFromText(getText(source), this.adaptOptions(opt_options));
|
||||
};
|
||||
|
||||
|
||||
@@ -67,8 +65,7 @@ TextFeature.prototype.readFeatureFromText = function(text, opt_options) {};
|
||||
* @inheritDoc
|
||||
*/
|
||||
TextFeature.prototype.readFeatures = function(source, opt_options) {
|
||||
return this.readFeaturesFromText(
|
||||
this.getText_(source), this.adaptOptions(opt_options));
|
||||
return this.readFeaturesFromText(getText(source), this.adaptOptions(opt_options));
|
||||
};
|
||||
|
||||
|
||||
@@ -86,8 +83,7 @@ TextFeature.prototype.readFeaturesFromText = function(text, opt_options) {};
|
||||
* @inheritDoc
|
||||
*/
|
||||
TextFeature.prototype.readGeometry = function(source, opt_options) {
|
||||
return this.readGeometryFromText(
|
||||
this.getText_(source), this.adaptOptions(opt_options));
|
||||
return this.readGeometryFromText(getText(source), this.adaptOptions(opt_options));
|
||||
};
|
||||
|
||||
|
||||
@@ -105,7 +101,7 @@ TextFeature.prototype.readGeometryFromText = function(text, opt_options) {};
|
||||
* @inheritDoc
|
||||
*/
|
||||
TextFeature.prototype.readProjection = function(source) {
|
||||
return this.readProjectionFromText(this.getText_(source));
|
||||
return this.readProjectionFromText(getText(source));
|
||||
};
|
||||
|
||||
|
||||
@@ -140,8 +136,7 @@ TextFeature.prototype.writeFeatureText = function(feature, opt_options) {};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
TextFeature.prototype.writeFeatures = function(
|
||||
features, opt_options) {
|
||||
TextFeature.prototype.writeFeatures = function(features, opt_options) {
|
||||
return this.writeFeaturesText(features, this.adaptOptions(opt_options));
|
||||
};
|
||||
|
||||
@@ -159,8 +154,7 @@ TextFeature.prototype.writeFeaturesText = function(features, opt_options) {};
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
TextFeature.prototype.writeGeometry = function(
|
||||
geometry, opt_options) {
|
||||
TextFeature.prototype.writeGeometry = function(geometry, opt_options) {
|
||||
return this.writeGeometryText(geometry, this.adaptOptions(opt_options));
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.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 LineString from '../geom/LineString.js';
|
||||
import MultiLineString from '../geom/MultiLineString.js';
|
||||
@@ -262,7 +262,7 @@ function readFeatureFromGeometry(object, arcs, scale, translate, property, name,
|
||||
}
|
||||
var feature = new _ol_Feature_();
|
||||
feature.setGeometry(/** @type {ol.geom.Geometry} */ (
|
||||
FeatureFormat.transformWithOptions(geometry, false, opt_options)));
|
||||
transformWithOptions(geometry, false, opt_options)));
|
||||
if (object.id !== undefined) {
|
||||
feature.setId(object.id);
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
*/
|
||||
import {inherits} from '../index.js';
|
||||
import _ol_Feature_ from '../Feature.js';
|
||||
import FeatureFormat from '../format/Feature.js';
|
||||
import {transformWithOptions} from '../format/Feature.js';
|
||||
import TextFeature from '../format/TextFeature.js';
|
||||
import GeometryCollection from '../geom/GeometryCollection.js';
|
||||
import GeometryType from '../geom/GeometryType.js';
|
||||
@@ -331,7 +331,7 @@ WKT.prototype.readGeometryFromText = function(text, opt_options) {
|
||||
var geometry = this.parse_(text);
|
||||
if (geometry) {
|
||||
return (
|
||||
/** @type {ol.geom.Geometry} */ FeatureFormat.transformWithOptions(geometry, false, opt_options)
|
||||
/** @type {ol.geom.Geometry} */ transformWithOptions(geometry, false, opt_options)
|
||||
);
|
||||
} else {
|
||||
return null;
|
||||
@@ -408,7 +408,7 @@ WKT.prototype.writeGeometry;
|
||||
*/
|
||||
WKT.prototype.writeGeometryText = function(geometry, opt_options) {
|
||||
return WKT.encode_(/** @type {ol.geom.Geometry} */ (
|
||||
FeatureFormat.transformWithOptions(geometry, true, opt_options)));
|
||||
transformWithOptions(geometry, true, opt_options)));
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user