diff --git a/src/components/legend/legend.js b/src/components/legend/legend.js
index 1bbe4c01..5719ed89 100644
--- a/src/components/legend/legend.js
+++ b/src/components/legend/legend.js
@@ -1,10 +1,13 @@
-import React from 'react';
+import React, { Fragment } from 'react';
import { Avatar, Box, Card, Stack } from '@mui/joy';
import { useLayers } from '@context';
import { getNamespacedEnvParam } from "@utils";
-export const MapLegend = () => {
+import Draggable from "react-draggable";
+import { Resizable } from "react-resizable";
+import "react-resizable/css/styles.css";
+export const MapLegend = () => {
// set correct map styles for layer name
// may want to move this somewhere else later
// for the implementation of user designed styles
@@ -54,40 +57,75 @@ export const MapLegend = () => {
legendVisibilty = "hidden";
}
+ // define the starting size of the card
+ const [newWidth, setNewWidth] = React.useState(75);
+ const [newHeight, setNewHeight] = React.useState(600);
+
+ // create a reference to avoid the findDOMNode deprecation issue
+ const nodeRef = React.useRef(null);
+
+ // declare the mins/maxes for the dialog content area
+ const minWidth = 40;
+ const minHeight = 450;
+ const maxWidth = 100;
+ const maxHeight = 700;
+
return (
-
-
-
-
-
-
-
-
+
+
+ {
+ console.log('width:' + newWidth + ', height:' + newHeight);
+ setNewWidth(newWidth + event.movementX);
+ setNewHeight(newHeight + event.movementY);
+ }}
+ axis="x"
+ >
+
+
+
+
+
+
+
+
+
+
+
+
);
};
\ No newline at end of file