Limit the overzoom by the resulting tile size rather than number of levels
commitaa892f6c3fa14bd98f606dc8929367dfe7851c03
authorMartin Tůma <tumic@cbox.cz>
Mon, 18 Dec 2023 19:32:00 +0000 (18 20:32 +0100)
committerMartin Tůma <tumic@cbox.cz>
Mon, 18 Dec 2023 19:32:00 +0000 (18 20:32 +0100)
tree8cf9bc87a0b86abf9ee3100df1e3b3f5cc911270
parent4e1b696869314b72d4f9f5f29d46f1060ed6b630
Limit the overzoom by the resulting tile size rather than number of levels

Huge sizes may cause broken rendering and cache ping-pong. Do not allow
resulting tile sizes > 4096x4096px.
src/map/mbtilesmap.cpp
src/map/mbtilesmap.h
src/map/onlinemap.cpp