mirror of https://github.com/aredn/aredn.git
Fix map when lat/lon unknown (#245)
This commit is contained in:
parent
a3f9e98577
commit
5a47d39b3b
|
@ -793,7 +793,7 @@ html.print([[
|
|||
}).addTo(map);
|
||||
]])
|
||||
|
||||
if lat and lon then
|
||||
if type(lat) == "number" and type(lon) == "number" 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);")
|
||||
|
|
Loading…
Reference in New Issue