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 Pupius
2026-03-15 23:35:44 +00:00
parent bd09beff40
commit cb04054d18
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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";