Skip to content

Commit

Permalink
MappointAid Error Radius Check closes #1487 (#1516)
Browse files Browse the repository at this point in the history
# Issue #1487
# Summary
Added check for error radius input to error radius. If it doesn't exist
default to 0 so no circle is drawn nor value sent outbound.
  • Loading branch information
MuchQuak committed Jul 19, 2024
1 parent 1a67719 commit 6dd47fd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion collections/tools/mappointaid.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,8 @@ function moveCircle(c, pos) {

function createMarker(lat, lng) {
drawnItems.clearLayers();
errRadius = parseFloat(document.getElementById("errRadius").value);
const errorRadInput = document.getElementById("errRadius");
errRadius = errorRadInput? parseFloat(errorRadInput.value): 0;

latlng = [lat,lng];

Expand Down

0 comments on commit 6dd47fd

Please sign in to comment.