RadarSmoothRequest

A radar tile drawn smooth instead of in squares.

NOAA's radar is a grid of cells about 1 km across, and its WMS server fills a finer tile by copying them. Where a tile pixel is finer than a cell, from returns a request for the cells themselves, one pixel per cell, and render scales them up. Elsewhere it returns null and the server's own tile is right.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The server request for the cells under the tile, padded so neighboring tiles meet without a seam.

Functions

Link copied to clipboard
suspend fun render(context: CoroutineContext, fetch: suspend (String) -> ByteArray?): ByteArray?

Fetches the padded cells through fetch and returns the smooth tile as PNG bytes, or null when the fetch or the decode fails, so the caller treats it as an ordinary failed tile.