File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
openmapview/src/main/kotlin/de/afarber/openmapview Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -826,6 +826,13 @@ class MapController(
826826 onTileLoadedCallback = callback
827827 }
828828
829+ /* *
830+ * Returns whether tiles are currently being downloaded.
831+ *
832+ * @return true if any tiles are actively downloading, false otherwise
833+ */
834+ fun isDownloadingTiles (): Boolean = downloadingTiles.isNotEmpty()
835+
829836 /* *
830837 * Updates the temporary pan offset during a drag gesture.
831838 *
Original file line number Diff line number Diff line change @@ -105,7 +105,6 @@ class OpenMapView
105105 controller.setOnTileLoadedCallback {
106106 invalidate()
107107 }
108- attributionOverlay.isGlowEnabled = uiSettings.isAttributionGlowEnabled
109108 }
110109
111110 override fun dispatchDraw (canvas : Canvas ) {
@@ -114,7 +113,7 @@ class OpenMapView
114113 if (uiSettings.isZoomControlsEnabled) {
115114 zoomControlsOverlay.draw(canvas, width, height)
116115 }
117- attributionOverlay.isGlowEnabled = uiSettings.isAttributionGlowEnabled
116+ attributionOverlay.isGlowEnabled = uiSettings.isAttributionGlowEnabled && controller.isDownloadingTiles()
118117 attributionOverlay.draw(canvas, width, height)
119118 }
120119
You can’t perform that action at this time.
0 commit comments