Skip to content

Commit 4659aae

Browse files
committed
Show warning if you specify maxzoom of 16+
1 parent 4a85c60 commit 4659aae

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/shared_data.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,13 @@ void Config::readConfig(rapidjson::Document &jsonConfig, bool &hasClippingBox, B
134134
cerr << "\"compress\" should be any of \"gzip\",\"deflate\",\"none\" in JSON file." << endl;
135135
exit (EXIT_FAILURE);
136136
}
137+
if (endZoom>15) {
138+
cout << "**** WARNING ****" << endl;
139+
cout << "You're generating tiles up to z" << endZoom << ". You probably don't want to do that." << endl;
140+
cout << "Standard practice is to generate vector tiles up to z14. Your renderer will 'overzoom' the z14 tiles for higher resolutions." << endl;
141+
cout << "tilemaker may have excessive memory, time, and space requirements at higher zooms. You can find more information in the docs/ folder." << endl;
142+
cout << "**** WARNING ****" << endl;
143+
}
137144
#ifndef FAT_TILE_INDEX
138145
if (endZoom>16) {
139146
cerr << "Compile tilemaker with -DFAT_TILE_INDEX to enable tile output at zoom level 17 or greater" << endl;

0 commit comments

Comments
 (0)