Ability to specify geometryName on ol.format.GeoJSON

This commit is contained in:
Bart van den Eijnden
2014-05-21 16:41:35 +02:00
parent dca88668ab
commit 8eef633abc
3 changed files with 29 additions and 2 deletions

View File

@@ -1104,7 +1104,8 @@ olx.control.ZoomToExtentOptions.prototype.extent;
/**
* @typedef {{defaultProjection: ol.proj.ProjectionLike}}
* @typedef {{defaultProjection: ol.proj.ProjectionLike,
* geometryName: (string|undefined)}}
* @todo api
*/
olx.format.GeoJSONOptions;
@@ -1117,6 +1118,13 @@ olx.format.GeoJSONOptions;
olx.format.GeoJSONOptions.prototype.defaultProjection;
/**
* Geometry name to use when creating features.
* @type {string|undefined}
*/
olx.format.GeoJSONOptions.prototype.geometryName;
/**
* @typedef {{defaultProjection: ol.proj.ProjectionLike}}
* @todo api