From cb04054d1850912f5c0878384eddca33073f0e79 Mon Sep 17 00:00:00 2001 From: Daniel Pupius Date: Sun, 15 Mar 2026 23:35:44 +0000 Subject: [PATCH] Add compact attribution to NodeLocationMap and NetworkMap Both were missing attributionControl so they rendered MapLibre's default (full text). Now consistent with LocationMap. Co-Authored-By: Claude Sonnet 4.6 --- web/src/components/dashboard/GoogleMap.tsx | 1 + web/src/components/dashboard/NetworkMap.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/web/src/components/dashboard/GoogleMap.tsx b/web/src/components/dashboard/GoogleMap.tsx index 7386dac..bdea4cc 100644 --- a/web/src/components/dashboard/GoogleMap.tsx +++ b/web/src/components/dashboard/GoogleMap.tsx @@ -58,6 +58,7 @@ export const NodeLocationMap: React.FC = ({ mapStyle={CARTO_DARK_STYLE} initialViewState={{ longitude: lng, latitude: lat, zoom: effectiveZoom }} style={{ width: "100%", height: "100%" }} + attributionControl={{ compact: true }} > void }, Networ mapStyle={CARTO_DARK_STYLE_LABELLED} initialViewState={{ longitude: -98, latitude: 39, zoom: 4 }} style={{ width: "100%", height: "100%" }} + attributionControl={{ compact: true }} interactiveLayerIds={["nodes-circles"]} onMouseEnter={() => { if (mapRef.current) mapRef.current.getMap().getCanvas().style.cursor = "pointer";