feature/dual-rendering #12
@ -51,6 +51,12 @@ import {
|
|||||||
} from '../lib/tooltips';
|
} from '../lib/tooltips';
|
||||||
import { sanitizeDeckLayerList } from '../lib/mapCore';
|
import { sanitizeDeckLayerList } from '../lib/mapCore';
|
||||||
|
|
||||||
|
// NOTE:
|
||||||
|
// Globe mode now relies on MapLibre native overlays (useGlobeOverlays/useGlobeShips).
|
||||||
|
// Keep Deck custom-layer rendering disabled in globe to avoid projection-space artifacts.
|
||||||
|
const ENABLE_GLOBE_DECK_OVERLAYS = false;
|
||||||
|
|
||||||
|
|
||||||
export function useDeckLayers(
|
export function useDeckLayers(
|
||||||
mapRef: MutableRefObject<import('maplibre-gl').Map | null>,
|
mapRef: MutableRefObject<import('maplibre-gl').Map | null>,
|
||||||
overlayRef: MutableRefObject<MapboxOverlay | null>,
|
overlayRef: MutableRefObject<MapboxOverlay | null>,
|
||||||
@ -595,6 +601,16 @@ export function useDeckLayers(
|
|||||||
const deckTarget = globeDeckLayerRef.current;
|
const deckTarget = globeDeckLayerRef.current;
|
||||||
if (!deckTarget) return;
|
if (!deckTarget) return;
|
||||||
|
|
||||||
|
if (!ENABLE_GLOBE_DECK_OVERLAYS) {
|
||||||
|
try {
|
||||||
|
deckTarget.setProps({ layers: [], getTooltip: undefined, onClick: undefined } as never);
|
||||||
|
} catch {
|
||||||
|
// ignore
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const overlayParams = GLOBE_OVERLAY_PARAMS;
|
const overlayParams = GLOBE_OVERLAY_PARAMS;
|
||||||
const globeLayers: unknown[] = [];
|
const globeLayers: unknown[] = [];
|
||||||
|
|
||||||
|
|||||||
@ -357,6 +357,7 @@ export function applyBathymetryZoomProfile(map: maplibregl.Map, baseMap: BaseMap
|
|||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function applyKoreanLabels(style: StyleSpecification) {
|
function applyKoreanLabels(style: StyleSpecification) {
|
||||||
|
|||||||
불러오는 중...
Reference in New Issue
Block a user