Add new geometry layout option for polyline format

To be able to choose the geometry layout of the feature geometries created by
the format reader.

Default is `ol.geom.GeometryLayout.XY`
This commit is contained in:
Frederic Junod
2015-03-24 11:39:15 +01:00
parent ae2c9144e1
commit e669b20ed5
4 changed files with 47 additions and 9 deletions
+11 -1
View File
@@ -1618,7 +1618,8 @@ olx.format.GeoJSONOptions.prototype.geometryName;
/**
* @typedef {{factor: (number|undefined)}}
* @typedef {{factor: (number|undefined),
* geometryLayout: (ol.geom.GeometryLayout|undefined)}}
* @api
*/
olx.format.PolylineOptions;
@@ -1633,6 +1634,15 @@ olx.format.PolylineOptions;
olx.format.PolylineOptions.prototype.factor;
/**
* Layout of the feature geometries created by the format reader.
* Default is `ol.geom.GeometryLayout.XY`.
* @type {ol.geom.GeometryLayout|undefined}
* @api
*/
olx.format.PolylineOptions.prototype.geometryLayout;
/**
* @typedef {{defaultDataProjection: ol.proj.ProjectionLike}}
* @api