writeFeature(feature, options) {
    return JSON.stringify(this.writeFeatureObject(feature, options));
  }
Encode a feature as string.

@param {import("../Feature.js").default} feature Feature.
@param {import("./Feature.js").WriteOptions} [options] Write options.
@return {string} Encoded feature.
@api
@override