Add draw features interaction

This commit is contained in:
oterral
2013-11-22 17:47:13 +01:00
parent b508469d22
commit 34260399e7
3 changed files with 495 additions and 0 deletions

View File

@@ -353,6 +353,17 @@
* @todo stability experimental
*/
/**
* @typedef {Object} olx.interaction.DrawOptions
* @property {ol.layer.Vector|undefined} layer Destination layer for the features.
* @property {number|undefined} snapTolerance Pixel distance for snapping to the
* drawing finish (default is 12).
* @property {ol.geom.GeometryType} type Drawing type ('Point', 'LineString',
* 'Polygon', 'MultiPoint', 'MultiLineString', or 'MultiPolygon').
* @property {ol.feature.StyleFunction|undefined} styleFunction Style function.
* @todo stability experimental
*/
/**
* @typedef {Object} olx.interaction.KeyboardPanOptions
* @property {ol.events.ConditionType|undefined} condition A conditional