Skip to content

Update hasNoDataSoRefersToExisting logic - #4275

Open
scharron wants to merge 1 commit into
rnmapbox:mainfrom
scharron:patch-4
Open

Update hasNoDataSoRefersToExisting logic#4275
scharron wants to merge 1 commit into
rnmapbox:mainfrom
scharron:patch-4

Conversation

@scharron

@scharron scharron commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Same as #4205 (comment) RNMBXRasterArraySource now uses tileUrlTemplates instead of uRL, and therefore it should check it contains data to render.

Description

Fixes #

Added your feature that allows ...

Checklist

  • I've read CONTRIBUTING.md
  • I updated the doc/other generated code with running yarn generate in the root folder
  • I have tested the new feature on /example app.
    • In V11 mode/ios
    • In New Architecture mode/ios
    • In V11 mode/android
    • In New Architecture mode/android
  • I added/updated a sample - if a new feature was implemented (/example)

Screenshot OR Video

Component to reproduce the issue you're fixing

Same as rnmapbox#4205 (comment)
RNMBXRasterArraySource now uses tileUrlTemplates instead of uRL, and therefore it should check it contains data to render.
Copilot AI lite review requested due to automatic review settings August 4, 2026 20:21
@scharron
scharron requested a deployment to CI with Mapbox Tokens August 4, 2026 20:21 — with GitHub Actions Waiting
@scharron
scharron requested a deployment to CI with Mapbox Tokens August 4, 2026 20:21 — with GitHub Actions Waiting
@scharron
scharron requested a deployment to CI with Mapbox Tokens August 4, 2026 20:21 — with GitHub Actions Waiting

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Android Mapbox v11-compat implementation of RNMBXRasterArraySource so the “no data, therefore this must refer to an existing source” heuristic accounts for the newer tileUrlTemplates-based configuration (in addition to the legacy uRL property). This aligns RNMBXRasterArraySource behavior with the existing RNMBXRasterSource/RNMBXRasterDemSource logic and prevents raster array sources from being incorrectly treated as “existing” when they actually have template data to render.

Changes:

  • Update RNMBXRasterArraySource.hasNoDataSoRefersToExisting() to consider tileUrlTemplates.isEmpty() alongside uRL == null.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants