Introduce defaultDataProjection for formats
This commit is contained in:
@@ -1153,7 +1153,10 @@ olx.format.ReadOptions;
|
||||
|
||||
/**
|
||||
* Projection of the data we are reading. If not provided, the projection will
|
||||
* be derived from the data (where possible).
|
||||
* be derived from the data (where possible) or the `defaultDataProjection` of
|
||||
* the format is assigned (where set). If the projection can not be derived from
|
||||
* the data and if no `defaultDataProjection` is set for a format, the features
|
||||
* will not be reprojected.
|
||||
* @type {ol.proj.ProjectionLike|undefined}
|
||||
*/
|
||||
olx.format.ReadOptions.prototype.dataProjection;
|
||||
@@ -1175,22 +1178,25 @@ olx.format.WriteOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Projection of the data we are writing. If not provided, features will be
|
||||
* written in the `featureProjection`.
|
||||
* Projection of the data we are writing. If not provided, the
|
||||
* `defaultDataProjection` of the format is assigned (where set). If no
|
||||
* `defaultDataProjection` is set for a format, the features will be returned
|
||||
* in the `featureProjection`.
|
||||
* @type {ol.proj.ProjectionLike|undefined}
|
||||
*/
|
||||
olx.format.WriteOptions.prototype.dataProjection;
|
||||
|
||||
|
||||
/**
|
||||
* Projection of the feature geometries serialized by the format writer.
|
||||
* Projection of the feature geometries that will be serialized by the format
|
||||
* writer.
|
||||
* @type {ol.proj.ProjectionLike}
|
||||
*/
|
||||
olx.format.WriteOptions.prototype.featureProjection;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{defaultProjection: ol.proj.ProjectionLike,
|
||||
* @typedef {{defaultDataProjection: ol.proj.ProjectionLike,
|
||||
* geometryName: (string|undefined)}}
|
||||
* @api
|
||||
*/
|
||||
@@ -1198,10 +1204,10 @@ olx.format.GeoJSONOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Default projection.
|
||||
* Default data projection.
|
||||
* @type {ol.proj.ProjectionLike}
|
||||
*/
|
||||
olx.format.GeoJSONOptions.prototype.defaultProjection;
|
||||
olx.format.GeoJSONOptions.prototype.defaultDataProjection;
|
||||
|
||||
|
||||
/**
|
||||
@@ -1226,17 +1232,17 @@ olx.format.PolylineOptions.prototype.factor;
|
||||
|
||||
|
||||
/**
|
||||
* @typedef {{defaultProjection: ol.proj.ProjectionLike}}
|
||||
* @typedef {{defaultDataProjection: ol.proj.ProjectionLike}}
|
||||
* @api
|
||||
*/
|
||||
olx.format.TopoJSONOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Default projection.
|
||||
* Default data projection.
|
||||
* @type {ol.proj.ProjectionLike}
|
||||
*/
|
||||
olx.format.TopoJSONOptions.prototype.defaultProjection;
|
||||
olx.format.TopoJSONOptions.prototype.defaultDataProjection;
|
||||
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user