Skip to content

Commit

Permalink
corrected snapDistance checkbox handling
Browse files Browse the repository at this point in the history
  • Loading branch information
cmhodgson committed Sep 23, 2024
1 parent af590bf commit 089a08b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ols-demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2056,10 +2056,7 @@ <h4>Examples:</h4>
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();
}

Expand Down

0 comments on commit 089a08b

Please sign in to comment.