Use extends and super for format/TextFeature
This commit is contained in:
@@ -1,7 +1,6 @@
|
|||||||
/**
|
/**
|
||||||
* @module ol/format/TextFeature
|
* @module ol/format/TextFeature
|
||||||
*/
|
*/
|
||||||
import {inherits} from '../util.js';
|
|
||||||
import FeatureFormat from '../format/Feature.js';
|
import FeatureFormat from '../format/Feature.js';
|
||||||
import FormatType from '../format/FormatType.js';
|
import FormatType from '../format/FormatType.js';
|
||||||
|
|
||||||
@@ -12,11 +11,10 @@ import FormatType from '../format/FormatType.js';
|
|||||||
* Base class for text feature formats.
|
* Base class for text feature formats.
|
||||||
*
|
*
|
||||||
* @abstract
|
* @abstract
|
||||||
* @extends {module:ol/format/Feature}
|
|
||||||
*/
|
*/
|
||||||
class TextFeature {
|
class TextFeature extends FeatureFormat {
|
||||||
constructor() {
|
constructor() {
|
||||||
FeatureFormat.call(this);
|
super();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -165,8 +163,6 @@ class TextFeature {
|
|||||||
writeGeometryText(geometry, opt_options) {}
|
writeGeometryText(geometry, opt_options) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
inherits(TextFeature, FeatureFormat);
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {Document|Node|Object|string} source Source.
|
* @param {Document|Node|Object|string} source Source.
|
||||||
|
|||||||
Reference in New Issue
Block a user