We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 25a4011 commit eecead6Copy full SHA for eecead6
resources/process-openmaptiles.lua
@@ -841,7 +841,9 @@ end
841
-- Set minimum zoom level by area but not below given minzoom
842
function SetMinZoomByAreaWithLimit(minzoom)
843
local area=Area()
844
- if minzoom <= 3 and area>ZRES2^2 then MinZoom(3)
+ 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)
847
elseif minzoom <= 4 and area>ZRES3^2 then MinZoom(4)
848
elseif minzoom <= 5 and area>ZRES4^2 then MinZoom(5)
849
elseif minzoom <= 6 and area>ZRES5^2 then MinZoom(6)
0 commit comments