Fix GeoJSON.readFeaturesFromObject

Only feature collections worked properly.
This commit is contained in:
tsauerwein
2014-08-08 11:14:03 +02:00
parent 281fd3c6a9
commit 3090a0af37
2 changed files with 10 additions and 1 deletions

View File

@@ -398,7 +398,7 @@ ol.format.GeoJSON.prototype.readFeaturesFromObject = function(
object, opt_options) {
var geoJSONObject = /** @type {GeoJSONObject} */ (object);
if (geoJSONObject.type == 'Feature') {
return [this.readFeatureFromObject(object)];
return [this.readFeatureFromObject(object, opt_options)];
} else if (geoJSONObject.type == 'FeatureCollection') {
var geoJSONFeatureCollection = /** @type {GeoJSONFeatureCollection} */
(object);