0400-geo-location.lua.in: fix 0.0 GluonSrcDiet issue
This commit is contained in:
parent
6729624b68
commit
097a8accca
@ -14,18 +14,18 @@ return function(form, uci)
|
|||||||
if uci_longitude ~= nil then
|
if uci_longitude ~= nil then
|
||||||
return uci_longitude
|
return uci_longitude
|
||||||
end
|
end
|
||||||
return site.config_mode.geo_location.map.lon(0.0)
|
return site.config_mode.geo_location.map.lon(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function show_lat()
|
local function show_lat()
|
||||||
if uci_latitude ~= nil then
|
if uci_latitude ~= nil then
|
||||||
return uci_latitude
|
return uci_latitude
|
||||||
end
|
end
|
||||||
return site.config_mode.geo_location.map.lat(0.0)
|
return site.config_mode.geo_location.map.lat(0)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function site_zoom()
|
local function site_zoom()
|
||||||
return site.config_mode.geo_location.map.zoom(12)
|
return site.config_mode.geo_location.map.zoom(12)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function show_olurl()
|
local function show_olurl()
|
||||||
|
Loading…
Reference in New Issue
Block a user