Ability to specify geometryName on ol.interaction.Draw

This commit is contained in:
Bart van den Eijnden
2014-05-13 19:36:36 +02:00
parent 86013c3a78
commit 945f5008f5
3 changed files with 43 additions and 2 deletions

View File

@@ -1608,7 +1608,8 @@ olx.interaction.DragZoomOptions.prototype.style;
* snapTolerance: (number|undefined),
* type: ol.geom.GeometryType,
* minPointsPerRing: (number|undefined),
* style: (ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined)}}
* style: (ol.style.Style|Array.<ol.style.Style>|ol.feature.StyleFunction|undefined),
* geometryName: (string|undefined)}}
* @todo api
*/
olx.interaction.DrawOptions;
@@ -1658,6 +1659,13 @@ olx.interaction.DrawOptions.prototype.minPointsPerRing;
olx.interaction.DrawOptions.prototype.style;
/**
* Geometry name to use for features created by the draw interaction.
* @type {string|undefined}
*/
olx.interaction.DrawOptions.prototype.geometryName;
/**
* @typedef {{condition: (ol.events.ConditionType|undefined),
* pixelDelta: (number|undefined)}}