Handle righthanded polygons in format, not source

This commit is contained in:
Andreas Hocevar
2015-09-25 17:15:01 +02:00
parent 29b64d8628
commit 0e8e104a2d
4 changed files with 18 additions and 12 deletions

View File

@@ -24,6 +24,12 @@ ol.format.Feature = function() {
* @type {ol.proj.Projection}
*/
this.defaultDataProjection = null;
/**
* @protected
* @type {boolean}
*/
this.rightHandedPolygons = false;
};
@@ -53,6 +59,14 @@ ol.format.Feature.prototype.getReadOptions = function(source, opt_options) {
};
/**
* @return {boolean}
*/
ol.format.Feature.prototype.getRightHandedPolygons = function() {
return this.rightHandedPolygons;
};
/**
* Sets the `defaultDataProjection` on the options, if no `dataProjection`
* is set.