1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use staticmap::{Error, StaticMapBuilder};

fn main() -> Result<(), Error> {
    let mut map = StaticMapBuilder::new()
        .width(300)
        .height(300)
        .zoom(4)
        .lon_center(4.)
        .lat_center(54.)
        .build()?;

    map.save_png("empty_map.png")?;

    Ok(())
}