Add basic docs for snapinteraction
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user