Add basic docs for snapinteraction

This commit is contained in:
Marc Jansen
2015-04-22 14:21:17 +02:00
parent a784157344
commit 4ea8cb7a19

View File

@@ -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`.