From e561931d53bb2bf1125a7e07717653a98e574deb Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 15 Oct 2014 15:49:03 -0700 Subject: [PATCH] Fix bug that would always index for z14 regardless of actual max zoom --- geojson.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geojson.c b/geojson.c index 662b32e..fbfb067 100644 --- a/geojson.c +++ b/geojson.c @@ -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;