GeoJSON format needs to implement readProjectionFromObject

This commit is contained in:
Éric Lemoine
2014-07-04 13:39:28 +02:00
parent 18462a2af3
commit 0666dee697

View File

@@ -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)) {