CartoDB / mobile-ios-samples

iOS mobile app with CARTO Mobile SDK
BSD 2-Clause "Simplified" License
30 stars 12 forks source link

Failed to download tiles #15

Closed chinna834 closed 6 years ago

chinna834 commented 6 years ago

Hello,

I was trying to download tiles in the link provided with sample snippet having Washington DC Downtown area lat long but I always receive the Failed to download error. Could you please address this issue ?

Reference link: https://carto.com/docs/carto-engine/mobile-sdk/custom-offline-data/

Logs:

Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource:: DownloadTask: Starting to download 12 tiles 2017-11-27 02:59:06.704537-0800 AdvancedMap.Swift[320:19643] PersistentCacheTileDataSource::loadTile: Loading MapTile [x=0, y=0, zoom=0, frameNr=0, id=0] Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource::loadTile: Loading MapTile [x=0, y=0, zoom=0, frameNr=0, id=0] 2017-11-27 02:59:06.708219-0800 AdvancedMap.Swift[320:19643] PersistentCacheTileDataSource::loadTile: Failed to load MapTile [x=0, y=0, zoom=0, frameNr=0, id=0] Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource::loadTile: Failed to load MapTile [x=0, y=0, zoom=0, frameNr=0, id=0] 2017-11-27 02:59:06.708577-0800 AdvancedMap.Swift[320:19643] PersistentCacheTileDataSource::loadTile: Loading MapTile [x=0, y=0, zoom=1, frameNr=0, id=1] Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource::loadTile: Loading MapTile [x=0, y=0, zoom=1, frameNr=0, id=1] 2017-11-27 02:59:06.709358-0800 AdvancedMap.Swift[320:19643] PersistentCacheTileDataSource::loadTile: Failed to load MapTile [x=0, y=0, zoom=1, frameNr=0, id=1] Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource::loadTile: Failed to load MapTile [x=0, y=0, zoom=1, frameNr=0, id=1] 2017-11-27 02:59:06.709565-0800 AdvancedMap.Swift[320:19643] PersistentCacheTileDataSource::loadTile: Loading MapTile [x=1, y=1, zoom=2, frameNr=0, id=10] Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource::loadTile: Loading MapTile [x=1, y=1, zoom=2, frameNr=0, id=10] 2017-11-27 02:59:06.709890-0800 AdvancedMap.Swift[320:19643] PersistentCacheTileDataSource::loadTile: Failed to load MapTile [x=1, y=1, zoom=2, frameNr=0, id=10] Nov 27 02:59:06 AdvancedMap.Swift[320] : PersistentCacheTileDataSource::loadTile: Failed to load MapTile [x=1, y=1, zoom=2, frameNr=0, id=10]

Nikituh commented 6 years ago

Could you provide code of your specific example? I tried to reproduce your issue, just added the code from your link to the project and the download worked fine. Saw progress, completed event was called.

Failing to load certain tiles is fine, by the way :)

If you don't see the map being rendered, you could try calling source?.notifyTilesChanged(false) on your NTPersistentCacheTileDataSource

Additionally, this is not an issue directly related to our mobile-ios-samples repository. In the future, I suggest you use stackoverflow for questions and mobile-sdk repository for issues with our SDK.