Fix some typos in ModifyInteraction documentation
This commit is contained in:
@@ -185,7 +185,7 @@ export class ModifyEvent extends Event {
|
|||||||
*
|
*
|
||||||
* Cartesian distance from the pointer is used to determine the features that
|
* Cartesian distance from the pointer is used to determine the features that
|
||||||
* will be modified. This means that geometries will only be considered for
|
* will be modified. This means that geometries will only be considered for
|
||||||
* modification when they are within the configured `pixelTolerane`. For point
|
* modification when they are within the configured `pixelTolerance`. For point
|
||||||
* geometries, the `hitDetection` option can be used to match their visual
|
* geometries, the `hitDetection` option can be used to match their visual
|
||||||
* appearance.
|
* appearance.
|
||||||
*
|
*
|
||||||
@@ -480,7 +480,7 @@ class Modify extends PointerInteraction {
|
|||||||
*/
|
*/
|
||||||
removeFeature_(feature) {
|
removeFeature_(feature) {
|
||||||
this.removeFeatureSegmentData_(feature);
|
this.removeFeatureSegmentData_(feature);
|
||||||
// Remove the vertex feature if the collection of canditate features is empty.
|
// Remove the vertex feature if the collection of candidate features is empty.
|
||||||
if (this.vertexFeature_ && this.features_.getLength() === 0) {
|
if (this.vertexFeature_ && this.features_.getLength() === 0) {
|
||||||
this.overlay_.getSource().removeFeature(this.vertexFeature_);
|
this.overlay_.getSource().removeFeature(this.vertexFeature_);
|
||||||
this.vertexFeature_ = null;
|
this.vertexFeature_ = null;
|
||||||
|
|||||||
Reference in New Issue
Block a user