Skip to content

2022-May-25 - Prerelease - 2.6.795

Pre-release
Pre-release
Compare
Choose a tag to compare
@github-actions github-actions released this 25 May 17:51
485cc17
Fix errors with map resources being not found in 2.6. (#10504)

* Fix errors with map resources being not found in 2.6.

This was caused by some maps having duplicate files (e.g. a polygon.txt file in baseTiles folder). Before this change, it's undefined which of these files will be found first and all other files will be expected to be alongside it.

With this change, the search returns files in a deterministic order, sorted by path length. So files closer to the root will be first in the list. This makes the behavior deterministic across platforms and the map to use the file closest to the map root.

Renames findAny() to findClosestToRoot() and adds tests.