Skip to content

Commit ab2a6dc

Browse files
authored
Update hasNoDataSoRefersToExisting logic for RNMBXRasterSource (#4205)
RNMBXRasterSource now uses tileUrlTemplates instead of uRL, and should check it contains data to render.
1 parent e8aefd6 commit ab2a6dc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSource.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class RNMBXRasterSource(context: Context?) : RNMBXTileSource<RasterSource?>(cont
2828
}
2929

3030
override fun hasNoDataSoRefersToExisting(): Boolean {
31-
return uRL == null
31+
return uRL == null && tileUrlTemplates.isEmpty()
3232
}
3333

3434
companion object {

0 commit comments

Comments
 (0)