Trait tile_sorcerer::TileSource
source · pub trait TileSource: Sized {
// Required method
fn render_mvt<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut PgConnection,
zoom: u8,
x: i32,
y: i32
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Expand description
This is the main trait exported by this crate. It is presently rather barebones, but is open for future expansion if other formats become relevant.
Required Methods§
sourcefn render_mvt<'life0, 'life1, 'async_trait>(
&'life0 self,
conn: &'life1 mut PgConnection,
zoom: u8,
x: i32,
y: i32
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn render_mvt<'life0, 'life1, 'async_trait>( &'life0 self, conn: &'life1 mut PgConnection, zoom: u8, x: i32, y: i32 ) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Renders the Mapbox vector tile for a slippy map tile in XYZ format.