Add code to generate a ready to use LeafletJS map.

This commit is contained in:
Martijn Versteegh
2018-11-14 17:43:19 +01:00
committed by Martijn Versteegh
parent bd0c140bfc
commit 503f6b6277
5 changed files with 754 additions and 1 deletions

View File

@ -30,6 +30,7 @@ void usage()
" --backend <backend>\n"
" --geometry x:y+w+h\n"
" --tilesize wxh\n"
" --leaflet\n"
" --extent\n"
" --zoom <zoomlevel>\n"
" --colors <colors.txt>\n"
@ -91,6 +92,7 @@ int main(int argc, char *argv[])
{"colors", required_argument, 0, 'C'},
{"scales", required_argument, 0, 'f'},
{"noemptyimage", no_argument, 0, 'n'},
{"leaflet", no_argument, 0, 'l'},
{0, 0, 0, 0}
};
@ -147,6 +149,9 @@ int main(int argc, char *argv[])
case 'H':
generator.setShading(false);
break;
case 'l':
generator.setLeaflet(true);
break;
case 'd':
generator.setBackend(optarg);
break;