Merge pull request #1413 from oterral/vector-api-draw

[vector-api] drawing interaction
This commit is contained in:
Éric Lemoine
2014-01-08 07:54:18 -08:00
6 changed files with 629 additions and 1 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