pub trait Tool {
    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.

Required Methods

Coordinates forming the extent of the object.

Draw the object to the pixmap using a PathBuilder.

Implementors