gluon-config-mode-geo-location-with-map: map max zoom fi position present

This commit is contained in:
Jan-Tarek Butt 2018-07-26 07:37:31 +02:00
parent 7abfeaab41
commit cc5e447c03

View File

@ -25,6 +25,9 @@ return function(form, uci)
end end
local function site_zoom() local function site_zoom()
if uci_longitude ~= nil and uci_latitude ~= nil then
return 18
end
return site.config_mode.geo_location.map.zoom(12) return site.config_mode.geo_location.map.zoom(12)
end end