From 870c3b07099b3e48f3de059efc50652bf761a076 Mon Sep 17 00:00:00 2001 From: Alexander Roidl Date: Wed, 30 Nov 2022 17:05:11 +0100 Subject: [PATCH] fix mosquito msg --- app/templates/home.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/templates/home.html b/app/templates/home.html index d8fcfac..6009a6b 100755 --- a/app/templates/home.html +++ b/app/templates/home.html @@ -276,8 +276,7 @@ map.fitBounds(group.getBounds().pad(0.4)); } else if (view == "closest") { var closest = L.GeometryUtil.closestLayer(map, mosquitoArray, myPositionCircle.getLatLng()); - document.getElementById("distance_close").innerHTML = "closest mosquito: " + distance(closest.layer.getLatLng() - .lng, closest.layer.getLatLng().lat, myPositionCircle.getLatLng().lng, myPositionCircle.getLatLng().lat) + document.getElementById("distance_close").innerHTML = "closest mosquito: " + distance(closest.layer.getLatLng().lng, closest.layer.getLatLng().lat, myPositionCircle.getLatLng().lng, myPositionCircle.getLatLng().lat) var group = new L.featureGroup([closest.layer, myPositionCircle]); map.fitBounds(group.getBounds().pad(0.4));