[−][src]Trait tile_sorcerer::TileSource
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
#[must_use]fn render_mvt<'life0, 'life1, 'async_trait>(
&'life0 self,
pool: &'life1 PgPool,
zoom: u8,
x: i32,
y: i32
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
pool: &'life1 PgPool,
zoom: u8,
x: i32,
y: i32
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Renders the Mapbox vector tile for a slippy map tile in XYZ format.