getProjection method on parsers

With this, vector sources/layers do not need to make
assumptions on the data projection.
This commit is contained in:
ahocevar
2013-07-22 15:02:08 +02:00
parent 82a158bdd2
commit 55697dea28
4 changed files with 21 additions and 6 deletions

View File

@@ -514,7 +514,7 @@
* @property {Object|string|undefined} data Data to parse.
* @property {ol.Extent|undefined} extent Extent.
* @property {string|undefined} logo Logo.
* @property {ol.parser.Parser} parser Parser instance to parse data
* @property {ol.parser.FeatureParser} parser Parser instance to parse data
* provided as `data` or fetched from `url`.
* @property {ol.ProjectionLike|undefined} projection Projection. EPSG:4326
* is assumed if not defined. TODO: Get projection from the parser instead