Skip to content

fix(TiledImageSource): implement adjustExtentAndPixelSize() (#436)

Sébastien Guimmara requested to merge 436-adjust-pixel-size-of-requests into main

This method of ImageSource was previously only implemented for CogSource. It allows the source to alter the actual extent and pixel size of the map tile in order to best match the actual resolution of the source. This results in more crispy tiled layers, especially when labels are displayed.

Before After
image image

Another benefit is that when we subdivide the map beyond the layer's resolution, the textures of the map tiles becomes smaller, saving memory.

Edited by Sébastien Guimmara

Merge request reports