diff --git a/include/tile_data.h b/include/tile_data.h index 32e892d3..3135643e 100644 --- a/include/tile_data.h +++ b/include/tile_data.h @@ -453,6 +453,7 @@ class TileDataSource { virtual void populateMultiPolygon(MultiPolygon& dst, NodeID objectID); + unsigned int getIndexZoom() const { return indexZoom; } inline size_t getId(NodeID id) const { return id & (~(~0ull << (TILE_DATA_ID_SIZE - shardBits))); } diff --git a/src/osm_lua_processing.cpp b/src/osm_lua_processing.cpp index f368baa4..545b1f37 100644 --- a/src/osm_lua_processing.cpp +++ b/src/osm_lua_processing.cpp @@ -972,7 +972,7 @@ bool OsmLuaProcessing::setNode(NodeID id, LatpLon node, const TagMap& tags) { } if (!this->empty()) { - TileCoordinates index = latpLon2index(node, this->config.baseZoom); + TileCoordinates index = latpLon2index(node, osmMemTiles.getIndexZoom()); for (auto &output : finalizeOutputs()) { osmMemTiles.addObjectToSmallIndex(index, output, originalOsmID);