mod_tile: replace all static max_zoom values of 18 with MAX_ZOOM constant. Patch derived from the work of the Geopard Team, especially Jonathan-David SCHRODER <jonathan.schroder@gmail.com>

This commit is contained in:
Andreas Hubel
2010-09-10 23:55:42 +00:00
parent e86b59c5d0
commit 79aa013e0b
4 changed files with 20 additions and 20 deletions

View File

@ -50,7 +50,7 @@ using namespace mapnik;
#endif
static const int minZoom = 0;
static const int maxZoom = 18;
static const int maxZoom = MAX_ZOOM;
typedef struct {
char xmlname[XMLCONFIG_MAX];
@ -71,7 +71,7 @@ class SphericalProjection
double *Ac, *Bc, *Cc, *zc;
public:
SphericalProjection(int levels=18) {
SphericalProjection(int levels=MAX_ZOOM) {
Ac = new double[levels];
Bc = new double[levels];
Cc = new double[levels];