diff --git a/contribs/gmf/src/editing/Snapping.js b/contribs/gmf/src/editing/Snapping.js index ca1f5edc055..b400df17ddd 100644 --- a/contribs/gmf/src/editing/Snapping.js +++ b/contribs/gmf/src/editing/Snapping.js @@ -614,7 +614,7 @@ EditingSnappingService.prototype.handleMapMoveEnd_ = function() { */ EditingSnappingService.prototype.refreshSnappingSource_ = function() { if (this.ngeoSnappingSource_ === undefined) { - throw new Error('Missing SnappingSource'); + return; } this.ngeoSnappingSource_.clear(); for (const uid in this.cache_) {