Skip to content

Commit eab08d1

Browse files
authored
Fix indexing nodes when basezoom>14 (#728)
1 parent d5ded3b commit eab08d1

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/tile_data.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,7 @@ class TileDataSource {
453453

454454
virtual void populateMultiPolygon(MultiPolygon& dst, NodeID objectID);
455455

456+
unsigned int getIndexZoom() const { return indexZoom; }
456457
inline size_t getId(NodeID id) const {
457458
return id & (~(~0ull << (TILE_DATA_ID_SIZE - shardBits)));
458459
}

src/osm_lua_processing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ bool OsmLuaProcessing::setNode(NodeID id, LatpLon node, const TagMap& tags) {
972972
}
973973

974974
if (!this->empty()) {
975-
TileCoordinates index = latpLon2index(node, this->config.baseZoom);
975+
TileCoordinates index = latpLon2index(node, osmMemTiles.getIndexZoom());
976976

977977
for (auto &output : finalizeOutputs()) {
978978
osmMemTiles.addObjectToSmallIndex(index, output, originalOsmID);

0 commit comments

Comments
 (0)