Update read* signatures in ol.format.JSONFeature to use options
This commit is contained in:
@@ -57,16 +57,16 @@ ol.format.JSONFeature.prototype.getType = function() {
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.format.JSONFeature.prototype.readFeature = function(source) {
|
ol.format.JSONFeature.prototype.readFeature = function(source, opt_options) {
|
||||||
return this.readFeatureFromObject(this.getObject_(source));
|
return this.readFeatureFromObject(this.getObject_(source), opt_options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.format.JSONFeature.prototype.readFeatures = function(source) {
|
ol.format.JSONFeature.prototype.readFeatures = function(source, opt_options) {
|
||||||
return this.readFeaturesFromObject(this.getObject_(source));
|
return this.readFeaturesFromObject(this.getObject_(source), opt_options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -91,8 +91,8 @@ ol.format.JSONFeature.prototype.readFeaturesFromObject = goog.abstractMethod;
|
|||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.format.JSONFeature.prototype.readGeometry = function(source) {
|
ol.format.JSONFeature.prototype.readGeometry = function(source, opt_options) {
|
||||||
return this.readGeometryFromObject(this.getObject_(source));
|
return this.readGeometryFromObject(this.getObject_(source), opt_options);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user