Move WriteOptions to ol/format/Feature
This commit is contained in:
@@ -2698,7 +2698,7 @@ function writePlacemark(node, feature, objectStack) {
|
||||
OBJECT_PROPERTY_NODE_FACTORY, values, objectStack, orderedKeys);
|
||||
|
||||
// serialize geometry
|
||||
const options = /** @type {olx.format.WriteOptions} */ (objectStack[0]);
|
||||
const options = /** @type {module:ol/format/Feature~WriteOptions} */ (objectStack[0]);
|
||||
let geometry = feature.getGeometry();
|
||||
if (geometry) {
|
||||
geometry = transformWithOptions(geometry, true, options);
|
||||
@@ -2940,7 +2940,7 @@ const KML_SERIALIZERS = makeStructureNS(
|
||||
*
|
||||
* @function
|
||||
* @param {Array.<ol.Feature>} features Features.
|
||||
* @param {olx.format.WriteOptions=} opt_options Options.
|
||||
* @param {module:ol/format/Feature~WriteOptions=} opt_options Options.
|
||||
* @return {string} Result.
|
||||
* @api
|
||||
*/
|
||||
@@ -2952,7 +2952,7 @@ KML.prototype.writeFeatures;
|
||||
* MultiPoints, MultiLineStrings, and MultiPolygons are output as MultiGeometries.
|
||||
*
|
||||
* @param {Array.<ol.Feature>} features Features.
|
||||
* @param {olx.format.WriteOptions=} opt_options Options.
|
||||
* @param {module:ol/format/Feature~WriteOptions=} opt_options Options.
|
||||
* @return {Node} Node.
|
||||
* @override
|
||||
* @api
|
||||
|
||||
Reference in New Issue
Block a user