mirror of
https://github.com/openstreetmap/mod_tile.git
synced 2025-08-12 02:41:14 +00:00
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:
@ -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];
|
||||
|
Reference in New Issue
Block a user