aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web/cobrands/fixmystreet/assets.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/web/cobrands/fixmystreet/assets.js b/web/cobrands/fixmystreet/assets.js
index 327c31346..ac967d523 100644
--- a/web/cobrands/fixmystreet/assets.js
+++ b/web/cobrands/fixmystreet/assets.js
@@ -72,7 +72,10 @@ OpenLayers.Layer.VectorAsset = OpenLayers.Class(OpenLayers.Layer.Vector, {
if (!fixmystreet.markers.getVisibility() || !(this.getVisibility() && this.inRange)) {
return;
}
- var threshold = this.fixmystreet.snap_threshold || 50; // metres
+ var threshold = 50; // metres
+ if ( this.fixmystreet.snap_threshold || this.fixmystreet.snap_threshold === 0 ) {
+ threshold = this.fixmystreet.snap_threshold;
+ }
var marker = fixmystreet.markers.features[0];
if (marker === undefined) {
// No marker to be found so bail out