From 856556c12b067cf6b67e5e943f1e9ec10db0becb Mon Sep 17 00:00:00 2001 From: Dan Ditomaso Date: Sat, 28 Dec 2024 20:21:40 -0500 Subject: [PATCH] feat: Add AttributionControl to Map to comply with OSM license requirements --- src/pages/Map.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/pages/Map.tsx b/src/pages/Map.tsx index 68587e44..1deeee64 100644 --- a/src/pages/Map.tsx +++ b/src/pages/Map.tsx @@ -16,7 +16,7 @@ import { ZoomOutIcon, } from "lucide-react"; import { useCallback, useEffect, useState } from "react"; -import { Marker, useMap } from "react-map-gl"; +import { AttributionControl, Marker, useMap } from "react-map-gl"; import MapGl from "react-map-gl/maplibre"; export const MapPage = (): JSX.Element => { @@ -126,6 +126,7 @@ export const MapPage = (): JSX.Element => { // }} // @ts-ignore + attributionControl={false} renderWorldCopies={false} maxPitch={0} @@ -142,6 +143,9 @@ export const MapPage = (): JSX.Element => { longitude: 0, }} > + {waypoints.map((wp) => (