pub struct HttpTiles { /* private fields */ }
Expand description
Downloads the tiles via HTTP. It must persist between frames.
Implementations§
Source§impl HttpTiles
impl HttpTiles
Sourcepub fn new<S>(source: S, egui_ctx: Context) -> Selfwhere
S: TileSource + Send + 'static,
pub fn new<S>(source: S, egui_ctx: Context) -> Selfwhere
S: TileSource + Send + 'static,
Construct new Tiles
with default HttpOptions
.
Sourcepub fn with_options<S>(
source: S,
http_options: HttpOptions,
egui_ctx: Context,
) -> Selfwhere
S: TileSource + Send + 'static,
pub fn with_options<S>(
source: S,
http_options: HttpOptions,
egui_ctx: Context,
) -> Selfwhere
S: TileSource + Send + 'static,
Construct new Tiles
with supplied HttpOptions
.
Trait Implementations§
Source§impl Tiles for HttpTiles
impl Tiles for HttpTiles
Source§fn attribution(&self) -> Attribution
fn attribution(&self) -> Attribution
Attribution of the source this tile cache pulls images from. Typically, this should be displayed somewhere on the top of the map widget.
Source§fn at(&mut self, tile_id: TileId) -> Option<TextureWithUv>
fn at(&mut self, tile_id: TileId) -> Option<TextureWithUv>
Return a tile if already in cache, schedule a download otherwise.
fn tile_size(&self) -> u32
Auto Trait Implementations§
impl Freeze for HttpTiles
impl !RefUnwindSafe for HttpTiles
impl Send for HttpTiles
impl Sync for HttpTiles
impl Unpin for HttpTiles
impl !UnwindSafe for HttpTiles
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more