mirror of https://github.com/aredn/aredn.git
Fix use of coordinate to center map (#304)
* Fix use of coordinate to center map * Typo
This commit is contained in:
parent
57f81e48cc
commit
ebd4a9e07e
|
@ -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);")
|
||||
|
|
Loading…
Reference in New Issue