Select to view content in your preferred language

Reload Map Tiles When Download Failed

257
2
10-18-2024 06:57 AM
mobileuser
Occasional Contributor

I'm displaying a WMTS layer using the Kotlin Maps SDK. When the internet connection is poor, some map tiles fail to load, and blurred tiles are shown instead. Ideally, these tiles should reload once the connection improves, but sometimes this doesn't happen. Is there a workaround to ensure that tiles always reload when the connection stabilizes, or is this a bug in the SDK?

You can easily reproduce this issue by trying to load a map area without an internet connection and then turning the connection back on. While dragging and zooming, some tiles will remain blurry indefinitely, as shown in the screenshot.

Thank you for your help!

2 Replies
GuntherHeppner
Esri Contributor

@mobileuser we are going to investigate this. Please could you provide some more information:
- Which version of the Kotlin Maps SDK are you using?
- Have you noticed this problem only with one specific WMTS service or can you reproduce it with different services? Also do you see similar issues with other types of tiled services, such as Esri's basemaps / ArcGISTiledLayer / ArcGISVectorTiledLayer?
- Is your WMTS service publicly accessible so we can test it directly?

0 Kudos
mobileuser
Occasional Contributor

@Gunterr That sounds great! Thank you for your response.

  • We use the latest Kotlin SDK 200.5.0. The same same behavior appears on iOS in Version 200.5.1
  • I could reproduce it with the following two WmtsLayers:

 

WmtsLayer(
  "https://whiterisk.ch/api/v2/map-capabilities",
  "ch.slf.whiterisk-topo",
)

 

 

 

WmtsLayer(
  "https://wmts.geo.admin.ch/EPSG/21781/1.0.0/WMTSCapabilities.xml",
  "ch.swisstopo.pixelkarte-farbe",
)

 

  • With the following I could not reproduce it:

 

WmtsLayer(
  "https://wmts.geo.admin.ch/EPSG/3857/1.0.0/WMTSCapabilities.xml",
  "ch.swisstopo.pixelkarte-farbe",
)

 

  • I tried to reproduce it with ArcGisTiledLayer, but I couldn't.

Sometimes it is quite tricky to reproduce the issue. I don't really recognize a pattern. The two layers I could reproduce it with use a different map projection than the other one. Maybe this helps. Thanks for your investigation.

0 Kudos