tilemaker icon indicating copy to clipboard operation
tilemaker copied to clipboard

remove FAT_TILE_INDEX

Open cldellow opened this issue 2 years ago • 0 comments

This fixes https://github.com/systemed/tilemaker/discussions/682. Opening as a draft, as I've only done minimal testing so far.

The gist is: TileDataSource now operates in terms of indexZoom, not baseZoom. It's the lesser of 14 or your configured base zoom.

TileCoordinatesSet has been turned into an interface, with two implementations:

  • PreciseTileCoordinatesSet, which is the old implementation, and used for z0-z14
  • LossyTileCoordinatesSet, which is used for z15+. It wraps a PreciseTileCoordinatesSet to answer whether a tile might have objects at z15+. It gives false positives, but never false negatives. False positives are OK, as they get clipped out when writing anyway.

Some smoke testing makes me think this is working. I'll ask the reporter to give it a whirl, too.

cldellow avatar Mar 26 '24 04:03 cldellow