pub fn render(config: &crate::cli::Config) -> CacheResult<()> {
    let folder = path!(config.output / "mapsquares");
    fs::create_dir_all(&folder)?;

    for zoom in 2..=4 {
        let inner_folder = path!(folder / f!("{CONFIG.map_id}/{zoom}"));

        fs::create_dir_all(inner_folder)?;
    }

    let iter = GroupMapSquareIterator::new(-1_i32..=1_i32, -1_i32..=1_i32, config)?;

    inner_render(config, iter)?;

    zoom::render_zoom_levels(&folder, CONFIG.map_id, -4..2, Color::ALPHA)?;
    Ok(())
}
/// Entry point for the map renderer.
Entry point for the map renderer.
Entry point for the map renderer .
pub fn render(config: &crate::cli::Config) -> CacheResult<()> {
    let folder = path!(config.output / "mapsquares");
    fs::create_dir_all(&folder)?;
    for zoom in 2..=4 {
        let inner_folder = path!(folder / f!("{CONFIG.map_id}/{zoom}"));
        fs::create_dir_all(inner_folder)?;
    }
    let iter = GroupMapSquareIterator::new(-1_i32..=1_i32, -1_i32..=1_i32, config)?;
    inner_render(config, iter)?;
    zoom::render_zoom_levels(&folder, CONFIG.map_id, -4..2, Color::ALPHA)?;
    Ok(())
}
pub fn render ( config : & crate :: cli :: Config ) -> CacheResult < ( ) > { let folder = path ! ( config output " " ) ; fs :: create_dir_all ( & folder ) ? ; for zoom in 2 ..= 4 { let inner_folder = path ! ( folder f ( " " ) ) ; fs :: create_dir_all ( inner_folder ) ? ; } let iter = GroupMapSquareIterator :: new ( - 1_i32 ..= 1_i32 , - 1_i32 ..= 1_i32 , config ) ? ; inner_render ( config , iter ) ? ; zoom :: render_zoom_levels ( & folder , CONFIG . map_id , - 4 .. 2 , Color :: ALPHA ) ? ; Ok ( ( ) ) }
Entry point for the map renderer.
Entry point for the map renderer .
config
&crate::cli::Config
config
&crate::cli::Config