mirror of
https://github.com/FoggedLens/deflock-app.git
synced 2026-09-30 21:19:42 +02:00
holy crap tile types
This commit is contained in:
1 parent
7bd6f68a99
commit
e65b9f58a6
7 files changed
+229
-11
No files matched your search
@@ -13,12 +13,12 @@ class SimpleTileHttpClient extends http.BaseClient {
|
||||
|
||||
@override
|
||||
Future<http.StreamedResponse> send(http.BaseRequest request) async {
|
||||
// Only intercept tile requests to OSM
|
||||
// Only intercept tile requests to OSM (for now - other providers pass through)
|
||||
if (request.url.host == 'tile.openstreetmap.org') {
|
||||
return _handleTileRequest(request);
|
||||
}
|
||||
|
||||
// Pass through all other requests
|
||||
// Pass through all other requests (Google, Mapbox, etc.)
|
||||
return _inner.send(request);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user