fix(security): upgrade Node and MapLibre runtimes

This commit is contained in:
2026-10-22 14:47:57 +08:00
parent 1e6d08f5d4
commit 88bbb1e13f
8 changed files with 142 additions and 190 deletions
@@ -1,6 +1,7 @@
import "maplibre-gl/dist/maplibre-gl.css";
import maplibregl, { type Map as MapLibreMap, type MapSourceDataEvent } from "maplibre-gl";
import * as maplibregl from "maplibre-gl";
import type { Map as MapLibreMap, MapSourceDataEvent } from "maplibre-gl";
import { useEffect, useRef, useState, type RefObject } from "react";
import { env } from "@/shared/config/env";
import type { DetailFeature } from "../types";
@@ -128,7 +129,7 @@ export function useWorkbenchMap({
pitch: 0,
bearing: 0,
maxZoom: MAP_MAX_ZOOM,
preserveDrawingBuffer: true,
canvasContextAttributes: { preserveDrawingBuffer: true },
attributionControl: false
});