Skip to content

Commit

Permalink
remove empty tiles
Browse files Browse the repository at this point in the history
  • Loading branch information
maerki committed Jan 15, 2024
1 parent f467165 commit 955d9dc
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -278,9 +278,11 @@ class GeoJSONVT: public GeoJSONVTInterface, public std::enable_shared_from_this<

auto& tile = it->second;

if (geometries.empty())
if (geometries.empty()) {
tiles.erase(it);
return;

}

//if it's the first-pass tiling
if (cz == 0u) {
// stop tiling if we reached max zoom, or if the tile is too simple
Expand Down

0 comments on commit 955d9dc

Please sign in to comment.