fix(TiledImageSource): implement adjustExtentAndPixelSize() (#436)
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 |
---|---|
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