Previously we only checked the style URL to determine if the renderers dropdown needed to be limited to Mapbox GL. This PR checks source URLs as well in that utility function since Mapbox URLs in a sources object also require Mapbox's renderer.
Noting that because this uses the stylesheet after its fetched, there is a brief period where the app will try to render the Mapbox style in Maplibre. There's no real user consequence here, but there will be console errors. Let me know if it's worthwhile to avoid this, but otherwise this seems ok to me.
Closes #183
QA steps
[ ] In your config, have set up a MapLibre style and a Mapbox style (that contains Mapbox source URLs, but the style URL is a regular http url)
[ ] Switch from the Maplibre style to the Mapbox style
[ ] Expect the renderer to update and the map to render
Author checklist
Create the PR
[x] Fill out PR template
[x] Make sure you've added a CHANGELOG entry under "Unreleased"
[x] Request a review
[ ] Make any requested changes and get approval
After approval
[ ] Merge any changes from main into your branch, resolve any conflicts
Description
Previously we only checked the style URL to determine if the renderers dropdown needed to be limited to Mapbox GL. This PR checks source URLs as well in that utility function since Mapbox URLs in a sources object also require Mapbox's renderer.
Noting that because this uses the stylesheet after its fetched, there is a brief period where the app will try to render the Mapbox style in Maplibre. There's no real user consequence here, but there will be console errors. Let me know if it's worthwhile to avoid this, but otherwise this seems ok to me.
Closes #183
QA steps
Author checklist
Create the PR
After approval
main
into your branch, resolve any conflictsmain