"use client"; /** * V2Map — the cockpit map card. Reuses the existing rich Leaflet plumbing * (PticaMapInner — parcel polygon, POI / ЖК / pipeline glyph pins, ЗОУИТ zones, * connection-point lines, custom POI, dark/satellite tiles) via a SINGLE shared * implementation loaded through dynamic(ssr:false) so Leaflet never touches the * server. Connection points + custom POIs are fetched here (same TanStack hooks * as PticaMap) and threaded into the inner map. * * The inner map brings its own overlay/legend/controls + base-layer toggle * (Спутник | Схема) and dark CartoDB tiles, matching the prototype map block. * The map title chip is rendered here over the card per the prototype `.map-head`. */ import dynamic from "next/dynamic"; import styles from "@/app/site-finder/analysis/[cad]/v2/v2.module.css"; import type { ParcelAnalysis } from "@/types/site-finder"; import { useConnectionPoints } from "@/hooks/useConnectionPoints"; import { useCustomPois } from "@/hooks/useCustomPois"; import { V2MapLegend } from "@/components/site-finder/ptica-v2/V2MapLegend"; const PticaMapInner = dynamic( () => import("@/components/site-finder/ptica/PticaMapInner"), { ssr: false, loading: () =>