mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update TileImageLoader.cs
This commit is contained in:
parent
63c088e220
commit
39671f66ae
|
|
@ -159,9 +159,9 @@ namespace MapControl
|
||||||
{
|
{
|
||||||
var response = await ImageLoader.GetHttpResponseAsync(uri).ConfigureAwait(false);
|
var response = await ImageLoader.GetHttpResponseAsync(uri).ConfigureAwait(false);
|
||||||
|
|
||||||
if (response != null) // download succeeded
|
if (response != null)
|
||||||
{
|
{
|
||||||
buffer = response.Buffer ?? Array.Empty<byte>(); // may be empty when no tile available, but still be cached
|
buffer = response.Buffer ?? Array.Empty<byte>(); // cache even if null, when no tile available
|
||||||
|
|
||||||
var maxAge = response.MaxAge ?? DefaultCacheExpiration;
|
var maxAge = response.MaxAge ?? DefaultCacheExpiration;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue