···628628 if building~="" then
629629 Layer("building", true)
630630 SetBuildingHeightAttributes()
631631- SetMinZoomByArea()
631631+ SetBuildingMinZoomByArea()
632632 end
633633634634 -- Set 'housenumber'
···787787-- Set minimum zoom level by area
788788function SetMinZoomByArea()
789789 SetMinZoomByAreaWithLimit(0)
790790+end
791791+792792+-- Buildings: pop in together around z12–z13 instead of dribbling
793793+-- in tier-by-tier through z14. Big footprints get z12, everything
794794+-- else gets z13 so the style's z12→z13 fade covers both.
795795+function SetBuildingMinZoomByArea()
796796+ local area=Area()
797797+ if area>ZRES12^2 then MinZoom(12)
798798+ else MinZoom(13) end
790799end
791800792801-- Set minimum zoom level by area but not below given minzoom