No need to pass all these feature components as separate arguments

This commit is contained in:
Erica Fischer
2023-08-15 10:49:44 -07:00
parent c212f9195f
commit 1d84ec7891
2 changed files with 12 additions and 30 deletions
+2
View File
@@ -263,9 +263,11 @@ serial_feature deserialize_feature(std::string &geoms, unsigned z, unsigned tx,
sf.has_id = false;
if (sf.layer & (1 << FLAG_MINZOOM)) {
deserialize_int(&cp, &sf.tippecanoe_minzoom);
sf.has_tippecanoe_minzoom = true;
}
if (sf.layer & (1 << FLAG_MAXZOOM)) {
deserialize_int(&cp, &sf.tippecanoe_maxzoom);
sf.has_tippecanoe_maxzoom = true;
}
if (sf.layer & (1 << FLAG_ID)) {
sf.has_id = true;