Satellite images not shown on several caches

sonny shared this problem 2 months ago
Solved

I'm using the satellite images addon to download Google-Maps snapshots for Caches. I noticed that for some caches they are diaplayed, for some not - if I perform GC-offlinizer before.


I did some trial & error and found out when imags are shown and when not. If the cache has some images (which are downloaded by GC-offlinizer) then sat-images are shown too. But if the cache lacks images (e.g. https://coord.info/GC2HG9B ), then just an empty "image"-tab is shown in Locus without the Google Maps snapshots.


If I perform GC-offlinizer a second time, than for some reason the sat-images are shown too for those caches.

Comments (4)

photo
1

Hi sonny, thank you for your report with examples, I will take a look at it.


Voldik

photo
1

Ok, so problem is that Locus creates empty html file "images.html" when you run Offlinizer and no image is downloaded. This causes that tab "Images" with no content is visible. After running my addon the html file is no longer empty but nothing is displayed. @Menion: maybe some cache?


Regardless on Menion's answer I will try to handle empty file. Stay tuned.

photo
1

Hmm, "images" tab that display content of html file is refreshed everytime when point detail is loaded or re-loaded. Anyway in this case, when you modify just html file and not the points itself in app database, this "refresh" probably won't happen. You may use ActionTools.updateLocusWaypoint method, or better should be some new function that just "reload" point, hmm ...

photo
1

I have updated my addon so if the file images.html is empty after running Offlinizer it is treated as there is no file. Tested and works fine for me. New version is beeing published on Google Play. Thanks sonny.