Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CASCADE-app/components/geo/geo-map-background.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
*/

import React, { useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
import maplibregl from "maplibre-gl";
// maplibre-gl 6 dropped its default export (named exports only) — a namespace
// import keeps every `maplibregl.X` reference in this file unchanged.
import * as maplibregl from "maplibre-gl";
import "maplibre-gl/dist/maplibre-gl.css";
import { useReactFlow, useViewport } from "@xyflow/react";
import { useCanvasStore } from "@/store/canvas-store";
Expand Down
3 changes: 2 additions & 1 deletion CASCADE-app/hooks/useMapViewportSync.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@

import { useCallback, useEffect, useLayoutEffect, useRef } from "react";
import type { RefObject } from "react";
import type maplibregl from "maplibre-gl";
// maplibre-gl 6 dropped its default export — see geo-map-background.tsx.
import type * as maplibregl from "maplibre-gl";
import { useOnViewportChange, useReactFlow, useViewport } from "@xyflow/react";
import { computeMapTarget } from "@/lib/geo-utils";
import type { GeoAnchor } from "@/lib/schemas/network";
Expand Down
134 changes: 48 additions & 86 deletions CASCADE-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion CASCADE-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"immer": "^11.1.8",
"jszip": "^3.10.1",
"lucide-react": "^1.17.0",
"maplibre-gl": "^5.24.0",
"maplibre-gl": "^6.4.1",
"nanoid": "^6.0.1",
"next": "^16.2.6",
"react": "^19.2.6",
Expand Down
Loading