getProjection method on parsers
With this, vector sources/layers do not need to make assumptions on the data projection.
This commit is contained in:
@@ -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() {};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user