Fix bug that would always index for z14 regardless of actual max zoom

This commit is contained in:
Eric Fischer 2014-10-15 15:49:03 -07:00
parent 1502e5832c
commit e561931d53

View File

@ -402,7 +402,7 @@ void read_json(FILE *f, char *fname, char *layername, int maxzoom, int minzoom,
serialize_string(metafile, metaval[i], &fpos, fname, jp);
}
int z = 14;
int z = maxzoom;
unsigned cx = bbox[0] / 2 + bbox[2] / 2;
unsigned cy = bbox[1] / 2 + bbox[3] / 2;