Use extends and super for format/MVT
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
*/
|
||||
//FIXME Implement projection handling
|
||||
|
||||
import {inherits} from '../util.js';
|
||||
import {assert} from '../asserts.js';
|
||||
import PBF from 'pbf';
|
||||
import FeatureFormat, {transformWithOptions} from '../format/Feature.js';
|
||||
@@ -42,18 +41,16 @@ import RenderFeature from '../render/Feature.js';
|
||||
* @classdesc
|
||||
* Feature format for reading data in the Mapbox MVT format.
|
||||
*
|
||||
* @extends {module:ol/format/Feature}
|
||||
* @param {module:ol/format/MVT~Options=} opt_options Options.
|
||||
* @api
|
||||
*/
|
||||
class MVT {
|
||||
class MVT extends FeatureFormat {
|
||||
|
||||
/**
|
||||
* @param {module:ol/format/MVT~Options=} opt_options Options.
|
||||
*/
|
||||
constructor(opt_options) {
|
||||
|
||||
FeatureFormat.call(this);
|
||||
super();
|
||||
|
||||
const options = opt_options ? opt_options : {};
|
||||
|
||||
@@ -321,8 +318,6 @@ class MVT {
|
||||
writeFeatures() {}
|
||||
}
|
||||
|
||||
inherits(MVT, FeatureFormat);
|
||||
|
||||
|
||||
/**
|
||||
* Reader callback for parsing layers.
|
||||
|
||||
Reference in New Issue
Block a user