diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index bd65c29a..0e6abd99 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -791,7 +791,7 @@ html.print([[ }).addTo(map); ]]) -if type(lat) == "number" and type(lon) == "number" then +if tonumber(lat) and tonumber(lon) then html.print("marker= new L.marker([" .. lat .. "," .. lon .. "],{draggable: true, icon: dotIcon});") html.print("map.addLayer(marker);") html.print("map.setView([" .. lat .. "," .. lon .. "],13);")