Commit 71960a3
fix(mapbox): automatically inject 'mapbox' view in overlaid mode for multi-view consistency
When custom views are provided without a view with id 'mapbox', MapboxOverlay
now automatically injects the default 'mapbox' view in overlaid mode, matching
the behavior in interleaved mode (where getViewport() already does this fallback).
This ensures consistent behavior between interleaved and overlaid modes, and
allows users to only specify additional views (like minimap, ortho) without
having to manually include the base map view.
The bug was discovered while implementing multi-view examples in #9946. When
interleaved was false (overlaid mode), the multi-view example did not render
airports/arcs layers because there was no 'mapbox' view for them to render in.
In interleaved mode, the same example worked because getViewport() in deck-utils
falls back to creating a 'mapbox' view when not found in custom views.
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 83ac412 commit 71960a3
1 file changed
+16
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
273 | 287 | | |
274 | 288 | | |
275 | 289 | | |
276 | 290 | | |
277 | 291 | | |
278 | | - | |
| 292 | + | |
279 | 293 | | |
280 | 294 | | |
281 | 295 | | |
| |||
0 commit comments