diff --git a/frontend/src/containers/map/content/map/layers-toolbox/layers-list/index.tsx b/frontend/src/containers/map/content/map/layers-toolbox/layers-list/index.tsx index df97a68c..e84b9643 100644 --- a/frontend/src/containers/map/content/map/layers-toolbox/layers-list/index.tsx +++ b/frontend/src/containers/map/content/map/layers-toolbox/layers-list/index.tsx @@ -2,6 +2,7 @@ import { ComponentProps, useCallback } from 'react'; import { LuChevronDown, LuChevronUp } from 'react-icons/lu'; +import TooltipButton from '@/components/tooltip-button'; import { Collapsible, CollapsibleContent, CollapsibleTrigger } from '@/components/ui/collapsible'; import { Label } from '@/components/ui/label'; import { Switch } from '@/components/ui/switch'; @@ -25,6 +26,7 @@ const LayersDropdown = (): JSX.Element => { const layersQuery = useGetLayers( { sort: 'title:asc', + populate: 'metadata', }, { query: { @@ -79,17 +81,23 @@ const LayersDropdown = (): JSX.Element => { const onCheckedChange = onToggleLayer.bind(null, layer.id) as ( isActive: boolean ) => void; + const metadata = layer?.attributes?.metadata; return ( -