The tileserver-gl can render raster tiles from vector data. This requires that the rendering component runs headless.
Essentially this means that the winit dependency needs to be decoupled. This is already prepared in maplibre-rs. The only winit dependencies are in the input and winit.rs module.
There are two major areas which need to be handled:
Rendering to a texture which then can be copied to a buffer. This buffer can be converted to a PNG file. #70
Rendering single tiles with the maximum size to a quadratic surface. If the surface is not quadratic, then the generated PNGs will have borders.
The tileserver-gl can render raster tiles from vector data. This requires that the rendering component runs headless. Essentially this means that the winit dependency needs to be decoupled. This is already prepared in maplibre-rs. The only winit dependencies are in the
input
andwinit.rs
module.There are two major areas which need to be handled: