Skip to content

Commit 8174ff2

Browse files
committed
Website updates
1 parent 4f2016f commit 8174ff2

File tree

7 files changed

+20
-9
lines changed

7 files changed

+20
-9
lines changed

dist/en/main/apidoc/module-ol_interaction_Modify-Modify.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ <h4 class="name">
703703

704704
<div class="tag-source">
705705
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
706-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1621">line 1621</a>
706+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1632">line 1632</a>
707707
</div>
708708

709709
</div>
@@ -794,7 +794,7 @@ <h4 class="name">
794794

795795
<div class="tag-source">
796796
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
797-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1429">line 1429</a>
797+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1440">line 1440</a>
798798
</div>
799799

800800
</div>
@@ -1892,7 +1892,7 @@ <h4 class="name">
18921892

18931893
<div class="tag-source">
18941894
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
1895-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1654">line 1654</a>
1895+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1665">line 1665</a>
18961896
</div>
18971897

18981898
</div>
@@ -2362,7 +2362,7 @@ <h4 class="name">
23622362

23632363
<div class="tag-source">
23642364
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js">interaction/Modify.js</a>,
2365-
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1460">line 1460</a>
2365+
<a href="https://github.com/openlayers/openlayers/blob/main/src/ol/interaction/Modify.js#L1471">line 1471</a>
23662366
</div>
23672367

23682368
</div>

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/interaction/Modify.d.ts.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/interaction/Modify.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,6 +1285,17 @@ class Modify extends PointerInteraction {
12851285
const squaredDist2 = squaredCoordinateDistance(vertexPixel, pixel2);
12861286
dist = Math.sqrt(Math.min(squaredDist1, squaredDist2));
12871287
this.snappedToVertex_ = dist <= this.pixelTolerance_;
1288+
// Stop and cleanup overlay vertex feature if a segment was hit and new vertex creation is not allowed by the insertVertexCondition
1289+
if (
1290+
!this.snappedToVertex_ &&
1291+
!this.insertVertexCondition_(this.lastPointerEvent_)
1292+
) {
1293+
if (this.vertexFeature_) {
1294+
this.overlay_.getSource().removeFeature(this.vertexFeature_);
1295+
this.vertexFeature_ = null;
1296+
}
1297+
return;
1298+
}
12881299
if (this.snappedToVertex_) {
12891300
vertex =
12901301
squaredDist1 > squaredDist2

0 commit comments

Comments
 (0)