Accept feature projection in GeoJSON constructor

This commit is contained in:
Tim Schaub
2016-09-26 22:56:07 -06:00
parent f8bcd725ad
commit 4b6e907f69
4 changed files with 59 additions and 14 deletions

View File

@@ -1666,7 +1666,8 @@ olx.format.WriteOptions.prototype.decimals;
/**
* @typedef {{defaultDataProjection: ol.ProjectionLike,
* geometryName: (string|undefined)}}
* geometryName: (string|undefined),
* featureProjection: ol.ProjectionLike}}
*/
olx.format.GeoJSONOptions;
@@ -1679,6 +1680,15 @@ olx.format.GeoJSONOptions;
olx.format.GeoJSONOptions.prototype.defaultDataProjection;
/**
* Projection for features read or written by the format. Options passed to
* read or write methods will take precedence.
* @type {ol.ProjectionLike}
* @api stable
*/
olx.format.GeoJSONOptions.prototype.featureProjection;
/**
* Geometry name to use when creating features.
* @type {string|undefined}