Accept feature projection in GeoJSON constructor
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user