Skip to content

Commit eecead6

Browse files
committed
SetMinZoomByAreaWithLimit allow zoom level 1.
1 parent 25a4011 commit eecead6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

resources/process-openmaptiles.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -841,7 +841,9 @@ end
841841
-- Set minimum zoom level by area but not below given minzoom
842842
function SetMinZoomByAreaWithLimit(minzoom)
843843
local area=Area()
844-
if minzoom <= 3 and area>ZRES2^2 then MinZoom(3)
844+
if minzoom <= 1 and area>ZRES0^2 then MinZoom(1)
845+
elseif minzoom <= 2 and area>ZRES1^2 then MinZoom(2)
846+
elseif minzoom <= 3 and area>ZRES2^2 then MinZoom(3)
845847
elseif minzoom <= 4 and area>ZRES3^2 then MinZoom(4)
846848
elseif minzoom <= 5 and area>ZRES4^2 then MinZoom(5)
847849
elseif minzoom <= 6 and area>ZRES5^2 then MinZoom(6)

0 commit comments

Comments
 (0)