Caching Rain Radar Images #140
-
I am using this package to cache rain radar images obtained from Rain Viewer. I use a timer to update the TileLayer url ('https://tilecache.rainviewer.com${weatherController.rainViewerData[currentRadarIndex.value].path}/256/{z}/{x}/{y}/4/1_1.png'). For the most part this works well once I have 'cycled through' the images and they are showing for the second time. However, the rainviewer api is very slow so the 'animation' does not really move until the images are cached. So I thought about preloading or downloading the rain radar images. I have therefore created a rectangle region, and following the docs, need to make that region downloadable, with something like this:
But how do I deal with the different url's? (I'm only a beginner with flutter, so not sure how to proceed). Any help is appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hi @roly151, |
Beta Was this translation helpful? Give feedback.
Ah yes, you'll need to start a different download for every URL.