Make writeFeature(s)/writeGeometry able to return ArrayBuffer
This commit is contained in:
@@ -187,7 +187,7 @@ class FeatureFormat {
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @param {import("../Feature.js").default} feature Feature.
|
* @param {import("../Feature.js").default} feature Feature.
|
||||||
* @param {WriteOptions} [opt_options] Write options.
|
* @param {WriteOptions} [opt_options] Write options.
|
||||||
* @return {string} Result.
|
* @return {string|ArrayBuffer} Result.
|
||||||
*/
|
*/
|
||||||
writeFeature(feature, opt_options) {
|
writeFeature(feature, opt_options) {
|
||||||
return abstract();
|
return abstract();
|
||||||
@@ -199,7 +199,7 @@ class FeatureFormat {
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @param {Array<import("../Feature.js").default>} features Features.
|
* @param {Array<import("../Feature.js").default>} features Features.
|
||||||
* @param {WriteOptions} [opt_options] Write options.
|
* @param {WriteOptions} [opt_options] Write options.
|
||||||
* @return {string} Result.
|
* @return {string|ArrayBuffer} Result.
|
||||||
*/
|
*/
|
||||||
writeFeatures(features, opt_options) {
|
writeFeatures(features, opt_options) {
|
||||||
return abstract();
|
return abstract();
|
||||||
@@ -211,7 +211,7 @@ class FeatureFormat {
|
|||||||
* @abstract
|
* @abstract
|
||||||
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
* @param {import("../geom/Geometry.js").default} geometry Geometry.
|
||||||
* @param {WriteOptions} [opt_options] Write options.
|
* @param {WriteOptions} [opt_options] Write options.
|
||||||
* @return {string} Result.
|
* @return {string|ArrayBuffer} Result.
|
||||||
*/
|
*/
|
||||||
writeGeometry(geometry, opt_options) {
|
writeGeometry(geometry, opt_options) {
|
||||||
return abstract();
|
return abstract();
|
||||||
|
|||||||
Reference in New Issue
Block a user