From a0d80d17e00d6643e6fd1fefdee03e121a91f251 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 10 Jan 2017 10:49:27 +0100 Subject: [PATCH] Add ol.format.TopoJSON.readProjectionFromObject function --- src/ol/format/topojson.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/ol/format/topojson.js b/src/ol/format/topojson.js index c7244dd5f4..5d8184ec55 100644 --- a/src/ol/format/topojson.js +++ b/src/ol/format/topojson.js @@ -371,7 +371,13 @@ ol.format.TopoJSON.transformVertex_ = function(vertex, scale, translate) { * @override * @api stable */ -ol.format.TopoJSON.prototype.readProjection = function(object) { +ol.format.TopoJSON.prototype.readProjection; + + +/** + * @inheritDoc + */ +ol.format.TopoJSON.prototype.readProjectionFromObject = function(object) { return this.defaultDataProjection; };