From 0666dee6974a75c061c39617e4511e513ca9a06d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Fri, 4 Jul 2014 13:39:28 +0200 Subject: [PATCH] GeoJSON format needs to implement readProjectionFromObject --- src/ol/format/geojsonformat.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/ol/format/geojsonformat.js b/src/ol/format/geojsonformat.js index 759a9e6531..6da6aa6e6f 100644 --- a/src/ol/format/geojsonformat.js +++ b/src/ol/format/geojsonformat.js @@ -416,13 +416,20 @@ ol.format.GeoJSON.prototype.readGeometryFromObject = function(object) { /** - * Read the projection from the GeoJSON source file. + * Read the projection from a GeoJSON source. * - * @param {ArrayBuffer|Document|Node|Object|string} object Source. + * @function + * @param {ArrayBuffer|Document|Node|Object|string} source Source. * @return {ol.proj.Projection} Projection. * @todo api */ -ol.format.GeoJSON.prototype.readProjection = function(object) { +ol.format.GeoJSON.prototype.readProjection; + + +/** + * @inheritDoc + */ +ol.format.GeoJSON.prototype.readProjectionFromObject = function(object) { var geoJSONObject = /** @type {GeoJSONObject} */ (object); var crs = geoJSONObject.crs; if (goog.isDefAndNotNull(crs)) {