mirror of
https://github.com/maplibre/martin.git
synced 2024-12-19 12:51:37 +03:00
Provide default Source::support_url_query
This commit is contained in:
parent
b88d714bf6
commit
2053f8067c
@ -81,10 +81,6 @@ impl Source for MbtSource {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
fn support_url_query(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
async fn get_tile(&self, xyz: &Xyz, _url_query: &Option<UrlQuery>) -> Result<Tile, Error> {
|
||||
if let Some(tile) = self
|
||||
.mbtiles
|
||||
|
@ -129,10 +129,6 @@ impl Source for PmtSource {
|
||||
Box::new(self.clone())
|
||||
}
|
||||
|
||||
fn support_url_query(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
async fn get_tile(&self, xyz: &Xyz, _url_query: &Option<UrlQuery>) -> Result<Tile, Error> {
|
||||
// TODO: optimize to return Bytes
|
||||
if let Some(t) = self
|
||||
|
@ -105,7 +105,9 @@ pub trait Source: Send + Debug {
|
||||
|
||||
fn clone_source(&self) -> Box<dyn Source>;
|
||||
|
||||
fn support_url_query(&self) -> bool;
|
||||
fn support_url_query(&self) -> bool {
|
||||
false
|
||||
}
|
||||
|
||||
async fn get_tile(&self, xyz: &Xyz, query: &Option<UrlQuery>) -> Result<Tile>;
|
||||
|
||||
|
@ -505,10 +505,6 @@ mod tests {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
fn support_url_query(&self) -> bool {
|
||||
unimplemented!()
|
||||
}
|
||||
|
||||
async fn get_tile(
|
||||
&self,
|
||||
_xyz: &Xyz,
|
||||
|
Loading…
Reference in New Issue
Block a user