pub trait Tool {
// Required methods
fn extent(&self, zoom: u8, tile_size: f64) -> (f64, f64, f64, f64);
fn draw(&self, bounds: &Bounds, pixmap: PixmapMut<'_>);
}
Expand description
Trait implemented by types which can be drawn to a map.
pub trait Tool {
// Required methods
fn extent(&self, zoom: u8, tile_size: f64) -> (f64, f64, f64, f64);
fn draw(&self, bounds: &Bounds, pixmap: PixmapMut<'_>);
}
Trait implemented by types which can be drawn to a map.