pub trait TileProvider: Debug {
    fn next_tiles(
        &mut self,
        previous: Option<TileFetchResult>
    ) -> Vec<TileReference> ; fn post_process_fn(&self) -> PostProcessFn { ... } fn name(&self) -> String { ... } fn title(&self) -> Option<String> { ... } fn size_hint(&self) -> Option<Vec2d> { ... } fn http_headers(&self) -> HashMap<String, String> { ... } }
Expand description

A single tiled image

Required Methods

Provide a list of image tiles. Should be called repetitively until it returns an empty list. Each new call takes the results of the previous tile fetch as a parameter.

Provided Methods

A function that takes the downloaded tile bytes and decodes them

The name of the format

The title of the image

The width and height of the image. Can be unknown when dezooming starts

A collection of http headers to use when requesting the tiles

Implementors