Merge branch 'dev_environment' of gitlab.com:brandx/bxt-app into dev_environment
This commit is contained in:
commit
2c61691896
4 changed files with 31 additions and 7 deletions
|
|
@ -81,7 +81,6 @@ export default function MapGL(props: Props) {
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
console.log(elems)
|
|
||||||
return elems;
|
return elems;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,8 @@ import {
|
||||||
Typography,
|
Typography,
|
||||||
Box,
|
Box,
|
||||||
FormControlLabel,
|
FormControlLabel,
|
||||||
Checkbox
|
Checkbox,
|
||||||
|
lighten
|
||||||
} from "@mui/material";
|
} from "@mui/material";
|
||||||
import AddMarkerIcon from "products/AgIcons/AddMarker";
|
import AddMarkerIcon from "products/AgIcons/AddMarker";
|
||||||
import FieldMapIcon from "products/AgIcons/FieldMap";
|
import FieldMapIcon from "products/AgIcons/FieldMap";
|
||||||
|
|
@ -45,8 +46,20 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
marginLeft: -15
|
marginLeft: -15
|
||||||
},
|
},
|
||||||
listItems: {
|
listItems: {
|
||||||
borderRadius: "3rem"
|
borderRadius: "3rem",
|
||||||
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: lighten(theme.palette.background.default, 0.25)
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
clickableMenuItem: {
|
||||||
|
fill: "transparent",
|
||||||
|
"&:hover": {
|
||||||
|
fill: "lightGrey",
|
||||||
|
opacity: 0.3,
|
||||||
|
cursor: "pointer"
|
||||||
|
}
|
||||||
|
},
|
||||||
}));
|
}));
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
@ -204,7 +217,6 @@ export default function AgMapTools(props: Props) {
|
||||||
<List className={classes.list}>
|
<List className={classes.list}>
|
||||||
<ListItem
|
<ListItem
|
||||||
id="createBin"
|
id="createBin"
|
||||||
//button
|
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
changeNewStatus(true);
|
changeNewStatus(true);
|
||||||
//setPlaceLine(false);
|
//setPlaceLine(false);
|
||||||
|
|
@ -381,6 +393,8 @@ export default function AgMapTools(props: Props) {
|
||||||
//button
|
//button
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
changeMarkerType(pond.ObjectType.OBJECT_TYPE_FIELDMARKER);
|
changeMarkerType(pond.ObjectType.OBJECT_TYPE_FIELDMARKER);
|
||||||
|
toggleMeasurement(false)
|
||||||
|
toggleEditorMode(undefined)
|
||||||
// if (watching) {
|
// if (watching) {
|
||||||
// props.newMarker(geoPosition.longitude, geoPosition.latitude, "custom");
|
// props.newMarker(geoPosition.longitude, geoPosition.latitude, "custom");
|
||||||
// }
|
// }
|
||||||
|
|
@ -400,6 +414,7 @@ export default function AgMapTools(props: Props) {
|
||||||
id="addMeasurementLine"
|
id="addMeasurementLine"
|
||||||
//button
|
//button
|
||||||
onClick={e => {
|
onClick={e => {
|
||||||
|
changeMarkerType(pond.ObjectType.OBJECT_TYPE_UNKNOWN)
|
||||||
toggleEditorMode("drawLine");
|
toggleEditorMode("drawLine");
|
||||||
toggleObjectEditType(pond.ObjectType.OBJECT_TYPE_UNKNOWN); //TODO: make this a measurement object type in the future
|
toggleObjectEditType(pond.ObjectType.OBJECT_TYPE_UNKNOWN); //TODO: make this a measurement object type in the future
|
||||||
toggleMeasurement(true);
|
toggleMeasurement(true);
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import {
|
||||||
Box,
|
Box,
|
||||||
Grid2 as Grid,
|
Grid2 as Grid,
|
||||||
IconButton,
|
IconButton,
|
||||||
|
lighten,
|
||||||
List,
|
List,
|
||||||
ListItem,
|
ListItem,
|
||||||
ListItemIcon,
|
ListItemIcon,
|
||||||
|
|
@ -33,7 +34,11 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
boxShadow: "4px 4px 10px black"
|
boxShadow: "4px 4px 10px black"
|
||||||
},
|
},
|
||||||
listItems: {
|
listItems: {
|
||||||
borderRadius: "3rem"
|
borderRadius: "3rem",
|
||||||
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: lighten(theme.palette.background.default, 0.25)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
liFont: {
|
liFont: {
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ import {
|
||||||
//Box,
|
//Box,
|
||||||
Grid2 as Grid,
|
Grid2 as Grid,
|
||||||
IconButton,
|
IconButton,
|
||||||
|
lighten,
|
||||||
List,
|
List,
|
||||||
ListItem,
|
ListItem,
|
||||||
ListItemIcon,
|
ListItemIcon,
|
||||||
|
|
@ -37,7 +38,11 @@ const useStyles = makeStyles((theme: Theme) => ({
|
||||||
boxShadow: "4px 4px 10px black"
|
boxShadow: "4px 4px 10px black"
|
||||||
},
|
},
|
||||||
listItems: {
|
listItems: {
|
||||||
borderRadius: "3rem"
|
borderRadius: "3rem",
|
||||||
|
cursor: "pointer",
|
||||||
|
"&:hover": {
|
||||||
|
backgroundColor: lighten(theme.palette.background.default, 0.25)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
liFont: {
|
liFont: {
|
||||||
fontWeight: 700,
|
fontWeight: 700,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue