diff options
author | Struan Donald <struan@exo.org.uk> | 2019-09-13 11:42:38 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2019-09-27 17:35:15 +0100 |
commit | 830565059ff9e8a3ba7a76e00fcdb940dedf40c4 (patch) | |
tree | 6dc03975290d3fefc334ffe45860421f625df0b9 /web | |
parent | a737d890b0850f9940adfae5acf1241738926866 (diff) |
allow asset snap threshold to be changed
for assets layers where we have both line and point assets it's not
helpful to have the snap threshold be very large.
Diffstat (limited to 'web')
-rw-r--r-- | web/cobrands/fixmystreet/assets.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js index c30fa2b5e..d67d91fd5 100644 --- a/web/cobrands/fixmystreet/assets.js +++ b/web/cobrands/fixmystreet/assets.js @@ -71,7 +71,7 @@ OpenLayers.Layer.VectorAsset = OpenLayers.Class(OpenLayers.Layer.Vector, { if (!fixmystreet.markers.getVisibility() || !(this.getVisibility() && this.inRange)) { return; } - var threshold = 50; // metres + var threshold = this.fixmystreet.snap_threshold || 50; // metres var marker = fixmystreet.markers.features[0]; if (marker === undefined) { // No marker to be found so bail out |