From 4ea8cb7a19cec9c72c2f1efd2c32d8576eaa6580 Mon Sep 17 00:00:00 2001 From: Marc Jansen Date: Wed, 22 Apr 2015 14:21:17 +0200 Subject: [PATCH] Add basic docs for snapinteraction --- src/ol/interaction/snapinteraction.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ol/interaction/snapinteraction.js b/src/ol/interaction/snapinteraction.js index 576fcfc5f5..dc93a1b437 100644 --- a/src/ol/interaction/snapinteraction.js +++ b/src/ol/interaction/snapinteraction.js @@ -152,6 +152,7 @@ goog.inherits(ol.interaction.Snap, ol.interaction.Pointer); /** + * Add a feature to the collection of features that we may snap to. * @param {ol.Feature} feature Feature. * @param {boolean=} opt_listen Whether to listen to the geometry change or not * Defaults to `true`. @@ -278,6 +279,7 @@ ol.interaction.Snap.prototype.handleGeometryModify_ = function(feature, evt) { /** + * Remove a feature from the collection of features that we may snap to. * @param {ol.Feature} feature Feature * @param {boolean=} opt_unlisten Whether to unlisten to the geometry change * or not. Defaults to `true`.