fix(native): GL maps load straight from their servers in the app, past the schemes they drew nothing through on iPadOS 26

This commit is contained in:
Maurice
2026-11-08 12:11:23 +01:00
parent 9b1bf89382
commit 53c18b861a
8 changed files with 62 additions and 5 deletions
+2
View File
@@ -5,6 +5,8 @@ import { mapboxTileCacheRequest, nativeRasterTemplate, tileCacheActive, toTileCa
vi.mock('./platform', () => ({ isNativeIos: vi.fn(), isNativeApp: vi.fn() }));
vi.mock('./capabilities', () => ({ hasNativeFeature: vi.fn() }));
// The mechanism is what is tested here; whether the GL maps use it is glSchemes.ts's switch.
vi.mock('./glSchemes', () => ({ GL_MAPS_THROUGH_APP_SCHEMES: true }));
beforeEach(() => {
vi.mocked(isNativeIos).mockReturnValue(true);