Closed provokateurin closed 1 month ago
But that cannot be changed because tiles with different sizes have to be loaded
Sure, but when I zoom out and then back it, it should load the same tiles as before, no?
Yes, and they are loaded from cache. But there are several layers for map, clouds, radar which require some processing. Using Leaflet library. https://github.com/Leaflet/Leaflet
So this would only be fixable inside leaflet?
same with latest Leaflet library. Maybe some day I will rewrite using osmdroid instead of leaflet. Seems to work much better.
For future use: //Example for RainViewer radar overlay final MapTileProviderBasic RainViewerTileProvider = new MapTileProviderBasic(context); final ITileSource RainViewerTileSource = new XYTileSource("RainViewer", 1, 16, 256, "/2/1_1.png", new String[]{"https://tilecache.rainviewer.com/v2/radar/1721157000/256/"}); RainViewerTileProvider.setTileSource(RainViewerTileSource); final TilesOverlay RainviewerTilesOverlay = new TilesOverlay(RainViewerTileProvider, context); RainviewerTilesOverlay.setLoadingBackgroundColor(Color.TRANSPARENT); holder.map.getOverlays().add(RainviewerTilesOverlay);
Here is a version using Osmdroid. Zooming is better, but now there is a flickering when animating the radar which is not great either. If someone has an idea to fix, let me know. (see also https://github.com/osmdroid/osmdroid/issues/2026)
-Uninstall -Remove .zip and install app-release.apk.zip
Got it working without flickering. Ready to test. app-release.apk.zip
-Uninstall -Remove .zip and install
Just tried it, works perfectly! Thank you so much :heart:
Describe the bug When zooming in our out on the rain radar there is heavy flickering because all tiles are constantly reloaded. This is very unpleasant to use.
How to Reproduce Steps to reproduce the behavior:
Expected behavior No flickering, tiles should be cached.
Screenshots If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):