TileLayer & error handling

3119
5
Jump to solution
10-14-2014 12:17 PM
RistoMoilanen
New Contributor

There is no more TileLoaded event and it's TileLoadEventArgs containing info for i.e httpexceptions. How is tile loading http exceptions meant to be handled in new 10.2.4. version?

0 Kudos
1 Solution

Accepted Solutions
dotMorten_esri
Esri Frequent Contributor

The .NET runtime's tile loading infrastructure is quite different and these events are not available. Generally if a tile cannot be loaded, it will use a lower-resolution tile to replace it with so you won't get blank space as often. (You can enable/disable this with the TiledLayer.ResamplingMode Property though)

View solution in original post

0 Kudos
5 Replies
RistoMoilanen
New Contributor

Does anyone know how to access HttpErrors and other tile loading errors when using TiledLayer?

0 Kudos
dotMorten_esri
Esri Frequent Contributor

The .NET runtime's tile loading infrastructure is quite different and these events are not available. Generally if a tile cannot be loaded, it will use a lower-resolution tile to replace it with so you won't get blank space as often. (You can enable/disable this with the TiledLayer.ResamplingMode Property though)

View solution in original post

0 Kudos
RistoMoilanen
New Contributor

Thanks for your answer. Another question related to base map tile loading. 

In previous esri map control versions we could access TileLoaded-event and save loaded tiles to disk for offline use. When user didn't have internet access, we could still show maps from device disk (with the help of TileLoading-event).

Is there nowadays any offline tile cache generating mechanisms "on-the-fly" (without explicitly downloading the whole base map from server with Export Tile Cache functionality..)?

0 Kudos
dotMorten_esri
Esri Frequent Contributor

If you loose connectivity intermittently, the tiles are cached locally in the session and will still be able to load.

For true off-line capability that works across multiple sessions, Export Tile Cache and pre-provisioned local tile caches (.tpk) is the recommended approach.

0 Kudos
MichaelBranscomb
Esri Frequent Contributor

Further to Morten's reply, if you are downloading and storing individual tiles you should review the licensing terms to ensure it is ok to do so in your scenario: Terms of Use | ArcGIS for Developers.

Cheers

0 Kudos