Fix a typo so it actually works, and add a test and documentation

This commit is contained in:
Eric Fischer
2016-08-30 15:32:09 -07:00
parent d8ba9db386
commit 76739fd27b
13 changed files with 646 additions and 540 deletions
+2 -2
View File
@@ -226,8 +226,8 @@ int serialize_geometry(json_object *geometry, json_object *properties, json_obje
tippecanoe_maxzoom = atoi(max->string);
}
json_object *ln = json_hash_get(tippecanoe, "layername");
if (ln != NULL && (max->type == JSON_STRING || max->type == JSON_NUMBER)) {
json_object *ln = json_hash_get(tippecanoe, "layer");
if (ln != NULL && (ln->type == JSON_STRING || ln->type == JSON_NUMBER)) {
tippecanoe_layername = std::string(ln->string);
}
}