Consistently handle not implemented methods

This commit is contained in:
Guillaume Beraudo
2017-01-31 09:21:01 +01:00
parent c9d33fb03a
commit 1c353061fe
4 changed files with 21 additions and 31 deletions
+10 -15
View File
@@ -256,40 +256,35 @@ ol.format.MVT.readGeometry_ = function(rawFeature) {
/**
* Not implemented.
* @override
*/
ol.format.MVT.prototype.readFeature = function() {
throw new Error('Not implemented');
};
ol.format.MVT.prototype.readFeature = function() {};
/**
* Not implemented.
* @override
*/
ol.format.MVT.prototype.readGeometry = function() {
throw new Error('Not implemented');
};
ol.format.MVT.prototype.readGeometry = function() {};
/**
* Not implemented.
* @override
*/
ol.format.MVT.prototype.writeFeature = function() {
throw new Error('Not implemented');
};
ol.format.MVT.prototype.writeFeature = function() {};
/**
* Not implemented.
* @override
*/
ol.format.MVT.prototype.writeGeometry = function() {
throw new Error('Not implemented');
};
ol.format.MVT.prototype.writeGeometry = function() {};
/**
* Not implemented.
* @override
*/
ol.format.MVT.prototype.writeFeatures = function() {
throw new Error('Not implemented');
};
ol.format.MVT.prototype.writeFeatures = function() {};