Renaming readFeaturesWithMetadata* back to readFeatures*

Since this is not exported and we do not have a counterpart that
does not return the metadata, it should be fine to use a shorter
name.
This commit is contained in:
ahocevar
2013-08-04 14:15:31 +02:00
parent 0aed05a413
commit 9578da0cfb
7 changed files with 19 additions and 19 deletions

View File

@@ -60,7 +60,7 @@ ol.parser.GeoJSON.read = function(str) {
* @param {ol.parser.ReadFeaturesOptions=} opt_options Reader options.
* @return {ol.parser.ReadFeaturesResult} Features and metadata.
*/
ol.parser.GeoJSON.prototype.readFeaturesWithMetadataFromString =
ol.parser.GeoJSON.prototype.readFeaturesFromString =
function(str, opt_options) {
var json = /** @type {GeoJSONFeatureCollection} */ (JSON.parse(str));
return {features: this.parseFeatureCollection_(json, opt_options),
@@ -75,7 +75,7 @@ ol.parser.GeoJSON.prototype.readFeaturesWithMetadataFromString =
* @param {ol.parser.ReadFeaturesOptions=} opt_options Reader options.
* @return {ol.parser.ReadFeaturesResult} Features and metadata.
*/
ol.parser.GeoJSON.prototype.readFeaturesWithMetadataFromObject =
ol.parser.GeoJSON.prototype.readFeaturesFromObject =
function(object, opt_options) {
return {features: this.parseFeatureCollection_(object, opt_options),
metadata: {projection: 'EPSG:4326'}};