From 089a08b958e3b9f7d44e31c07ca89cc2628e5cf1 Mon Sep 17 00:00:00 2001 From: Chris Hodgson Date: Mon, 23 Sep 2024 15:39:09 -0700 Subject: [PATCH] corrected snapDistance checkbox handling --- ols-demo/index.html | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ols-demo/index.html b/ols-demo/index.html index 7515d42..7e8c7d9 100644 --- a/ols-demo/index.html +++ b/ols-demo/index.html @@ -2056,10 +2056,7 @@

Examples:

params['simplifyThreshold'] = $('#simplifyThreshold').val(); } - if($('#snapDistanceChk').is(':checked')) { - params['snapDistance'] = "true"; - } - if(!isNaN( $('#snapDistance').val()) ) { + if($('#snapDistanceChk').is(':checked') && !isNaN( $('#snapDistance').val()) ) { params['snapDistance'] = $('#snapDistance').val(); }