Snap to finish with configurable tolerance

This commit is contained in:
Tim Schaub
2013-10-30 16:01:26 -06:00
parent ea6500ecd0
commit b5cc35ee04
2 changed files with 18 additions and 12 deletions

View File

@@ -344,6 +344,8 @@
/**
* @typedef {Object} ol.interaction.DrawOptions
* @property {ol.layer.Vector} layer Destination layer for the features.
* @property {number|undefined} snapTolerance Pixel distance for snapping to the
* drawing finish (default is 12).
* @property {ol.interaction.DrawMode} mode Drawing mode ('point', 'linestring',
* or 'polygon').
* @todo stability experimental