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:
@@ -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'}};
|
||||
|
||||
Reference in New Issue
Block a user