Use a ReadFeatures object instead of sourceProjection/targetProjection

This commit is contained in:
Andreas Hocevar
2014-07-18 20:47:36 +02:00
parent 225791c969
commit 0ea55b7f27
4 changed files with 52 additions and 47 deletions

View File

@@ -1144,6 +1144,29 @@ olx.control.ZoomToExtentOptions.prototype.tipLabel;
olx.control.ZoomToExtentOptions.prototype.extent;
/**
* @typedef {{dataProjection: (ol.proj.ProjectionLike|undefined),
* featureProjection: (ol.proj.ProjectionLike|undefined)}}
*/
olx.format.ReadOptions;
/**
* Projection of the data we are reading. Default is the projection derived from
* the data.
* @type {ol.proj.ProjectionLike|undefined}
*/
olx.format.ReadOptions.prototype.dataProjection;
/**
* Projection of the feature geometries created by the format reader. Default
* is the `dataProjection`.
* @type {ol.proj.ProjectionLike|undefined}
*/
olx.format.ReadOptions.prototype.featureProjection;
/**
* @typedef {{defaultProjection: ol.proj.ProjectionLike,
* geometryName: (string|undefined)}}