From 3245b8c6af14909a51e454be8d59232c945a0fc0 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Fri, 18 Jul 2014 20:48:36 +0200 Subject: [PATCH] Update read* signatures in ol.format.JSONFeature to use options --- src/ol/format/jsonfeatureformat.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/ol/format/jsonfeatureformat.js b/src/ol/format/jsonfeatureformat.js index edecc8497c..1d222eb732 100644 --- a/src/ol/format/jsonfeatureformat.js +++ b/src/ol/format/jsonfeatureformat.js @@ -57,16 +57,16 @@ ol.format.JSONFeature.prototype.getType = function() { /** * @inheritDoc */ -ol.format.JSONFeature.prototype.readFeature = function(source) { - return this.readFeatureFromObject(this.getObject_(source)); +ol.format.JSONFeature.prototype.readFeature = function(source, opt_options) { + return this.readFeatureFromObject(this.getObject_(source), opt_options); }; /** * @inheritDoc */ -ol.format.JSONFeature.prototype.readFeatures = function(source) { - return this.readFeaturesFromObject(this.getObject_(source)); +ol.format.JSONFeature.prototype.readFeatures = function(source, opt_options) { + return this.readFeaturesFromObject(this.getObject_(source), opt_options); }; @@ -91,8 +91,8 @@ ol.format.JSONFeature.prototype.readFeaturesFromObject = goog.abstractMethod; /** * @inheritDoc */ -ol.format.JSONFeature.prototype.readGeometry = function(source) { - return this.readGeometryFromObject(this.getObject_(source)); +ol.format.JSONFeature.prototype.readGeometry = function(source, opt_options) { + return this.readGeometryFromObject(this.getObject_(source), opt_options); };