Skip to content

Commit

Permalink
[BUILD]
Browse files Browse the repository at this point in the history
  • Loading branch information
Viglino committed Jun 1, 2022
2 parents 6914e38 + 3ff5960 commit f474c47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion dist/ol-ext.js
Original file line number Diff line number Diff line change
Expand Up @@ -21561,7 +21561,8 @@ ol.interaction.DrawHole.prototype._startDrawing = function(e) {
map.forEachFeatureAtPixel(
map.getPixelFromCoordinate(coord),
function(feature, layer) {
if (this._features(feature, layer)) {
// Not yet found?
if (!this._current && this._features(feature, layer)) {
var poly = feature.getGeometry();
if (poly.getType() === "Polygon"
&& poly.intersectsCoordinate(coord)) {
Expand Down
2 changes: 1 addition & 1 deletion dist/ol-ext.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion src/interaction/DrawHole.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ ol_interaction_DrawHole.prototype._startDrawing = function(e) {
map.forEachFeatureAtPixel(
map.getPixelFromCoordinate(coord),
function(feature, layer) {
if (this._features(feature, layer)) {
// Not yet found?
if (!this._current && this._features(feature, layer)) {
var poly = feature.getGeometry();
if (poly.getType() === "Polygon"
&& poly.intersectsCoordinate(coord)) {
Expand Down

0 comments on commit f474c47

Please sign in to comment.