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 <noreply@anthropic.com>
This commit is contained in:
Daniel PupiusandClaude Sonnet 4.6 committed 2026-03-15 23:35:44 +00:00
1 parent bd09beff40
commit cb04054d18
2 files changed
+2

No files matched your search

@@ -58,6 +58,7 @@ export const NodeLocationMap: React.FC<NodeLocationMapProps> = ({
mapStyle={CARTO_DARK_STYLE}
initialViewState={{ longitude: lng, latitude: lat, zoom: effectiveZoom }}
style={{ width: "100%", height: "100%" }}
attributionControl={{ compact: true }}
>
<Source id="circle" type="geojson" data={circleGeoJSON}>
<Layer
@@ -174,6 +174,7 @@ export const NetworkMap = React.forwardRef<{ resetAutoZoom: () => 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";