Trait TileSource

Source
pub trait TileSource:
    DynClone
    + Send
    + Sync {
    // Required methods
    fn xyz_request<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>(
        &'life0 self,
        tms: &'life1 Tms,
        tile: &'life2 Xyz,
        filter: &'life3 FilterParams,
        format: &'life4 Format,
        request_params: HttpRequestParams<'life5>,
    ) -> Pin<Box<dyn Future<Output = Result<TileResponse, TileSourceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait,
             'life4: 'async_trait,
             'life5: 'async_trait;
    fn source_type(&self) -> SourceType;
    fn tilejson<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tms: &'life1 Tms,
        format: &'life2 Format,
    ) -> Pin<Box<dyn Future<Output = Result<TileJSON, TileSourceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait;
    fn layers<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<LayerInfo>, TileSourceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn default_format(&self) -> &Format { ... }
    fn set_map_service(&mut self, _service: &MapService) { ... }
    fn wms_metrics(&self) -> &'static WmsMetrics { ... }
    fn mbtiles_metadata<'life0, 'life1, 'life2, 'async_trait>(
        &'life0 self,
        tileset: &'life1 TileSetCfg,
        format: &'life2 Format,
    ) -> Pin<Box<dyn Future<Output = Result<Metadata, TileSourceError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait { ... }
}

Required Methods§

Source

fn xyz_request<'life0, 'life1, 'life2, 'life3, 'life4, 'life5, 'async_trait>( &'life0 self, tms: &'life1 Tms, tile: &'life2 Xyz, filter: &'life3 FilterParams, format: &'life4 Format, request_params: HttpRequestParams<'life5>, ) -> Pin<Box<dyn Future<Output = Result<TileResponse, TileSourceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait, 'life4: 'async_trait, 'life5: 'async_trait,

Request tile from source

Source

fn source_type(&self) -> SourceType

Type information

Source

fn tilejson<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tms: &'life1 Tms, format: &'life2 Format, ) -> Pin<Box<dyn Future<Output = Result<TileJSON, TileSourceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

TileJSON layer metadata (https://github.com/mapbox/tilejson-spec)

Source

fn layers<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Vec<LayerInfo>, TileSourceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Layer metadata

Provided Methods§

Source

fn default_format(&self) -> &Format

Default tile format

Source

fn set_map_service(&mut self, _service: &MapService)

Set MapService for WmsFcgiSource

Source

fn wms_metrics(&self) -> &'static WmsMetrics

MapService metrics

Source

fn mbtiles_metadata<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, tileset: &'life1 TileSetCfg, format: &'life2 Format, ) -> Pin<Box<dyn Future<Output = Result<Metadata, TileSourceError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Implementors§