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

@@ -12,6 +12,20 @@ goog.require('ol.Feature');
/**
* @interface
*/
ol.parser.FeatureParser = function() {};
/**
* @return {ol.Projection} Data projection.
*/
ol.parser.FeatureParser.prototype.getProjection = goog.abstractMethod;
/**
* @interface
* @extends {ol.parser.FeatureParser}
*/
ol.parser.DomFeatureParser = function() {};