0400-geo-location.lua: show last selected pos on map if router get reconfigured
This commit is contained in:
parent
3412cd97b8
commit
b9bedb8265
@ -8,22 +8,22 @@ return function(form, uci)
|
||||
#ifdef WITHMAP
|
||||
|
||||
local function show_lon()
|
||||
if site.config_mode.geo_location.map_lon(false) then
|
||||
return site.config_mode.geo_location.map_lon()
|
||||
end
|
||||
if uci_longitude ~= nil then
|
||||
return uci_longitude
|
||||
end
|
||||
if site.config_mode.geo_location.map_lon(false) then
|
||||
return site.config_mode.geo_location.map_lon()
|
||||
end
|
||||
return 0.0
|
||||
end
|
||||
|
||||
local function show_lat()
|
||||
if site.config_mode.geo_location.map_lat(false) then
|
||||
return site.config_mode.geo_location.map_lat()
|
||||
end
|
||||
if uci_latitude ~= nil then
|
||||
return uci_latitude
|
||||
end
|
||||
if site.config_mode.geo_location.map_lat(false) then
|
||||
return site.config_mode.geo_location.map_lat()
|
||||
end
|
||||
return 0.0
|
||||
end
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user