@mapcomponents/react-maplibre 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/dist/index.cjs.js +79 -172
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +79 -172
- package/dist/index.esm.js.map +1 -1
- package/dist/src/components/MlLayerSwipe/assets/SwipeIcon.d.ts +10 -0
- package/dist/src/components/MlNavigationCompass/assets/CompassBackground.d.ts +9 -0
- package/dist/src/components/MlNavigationCompass/assets/CompassNeedle.d.ts +9 -0
- package/dist/src/components/MlShareMapState/MlShareMapState.d.ts +0 -7
- package/dist/src/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +1 -18
- package/dist/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.d.ts +0 -7
- package/dist/src/components/MlWmsLayer/MlWmsLayer.d.ts +0 -46
- package/dist/src/contexts/SimpleDataProvider.d.ts +1 -7
- package/dist/src/protocol_handlers/osm.d.ts +0 -1
- package/dist/src/ui_components/LoadingOverlayContext.d.ts +1 -7
- package/package.json +35 -34
- package/rollup.config.mjs +15 -16
package/dist/index.esm.js
CHANGED
|
@@ -4,7 +4,7 @@ import React__default, { useMemo, useEffect, useCallback, useState, useRef, useC
|
|
|
4
4
|
import { createTheme, ThemeProvider, styled as styled$2, useTheme } from '@mui/material/styles';
|
|
5
5
|
import { v4 } from 'uuid';
|
|
6
6
|
import 'maplibre-gl/dist/maplibre-gl.css';
|
|
7
|
-
import { Button, CircularProgress, useMediaQuery, FormControl, InputLabel, Select, MenuItem, FormLabel, RadioGroup, FormControlLabel, Radio, styled, List, ListItem, ListItemIcon, IconButton, Checkbox, ListItemText, Grid, Paper, Box as Box$1, Typography, TextField, Slider, Drawer, Tooltip, Snackbar, DialogTitle as DialogTitle$1, DialogActions as DialogActions$1, ListItemButton, ListItemAvatar, Avatar, DialogContent as DialogContent$1, OutlinedInput, Accordion, AccordionSummary, Dialog as Dialog$1 } from '@mui/material';
|
|
7
|
+
import { Button, CircularProgress, useMediaQuery, FormControl, InputLabel, Select, MenuItem, FormLabel, RadioGroup, FormControlLabel, Radio, styled, List, ListItem, ListItemIcon, IconButton, Checkbox, ListItemText, Grid, Paper, Box as Box$1, Typography, TextField, Slider, Drawer, SwipeableDrawer, Tooltip, Snackbar, DialogTitle as DialogTitle$1, DialogActions as DialogActions$1, ListItemButton, ListItemAvatar, Avatar, DialogContent as DialogContent$1, OutlinedInput, Accordion, AccordionSummary, Dialog as Dialog$1 } from '@mui/material';
|
|
8
8
|
import FilterCenterFocusIcon from '@mui/icons-material/FilterCenterFocus';
|
|
9
9
|
import PrinterIcon from '@mui/icons-material/Print';
|
|
10
10
|
import Button$1 from '@mui/material/Button';
|
|
@@ -20,10 +20,12 @@ import Box$2 from '@mui/material/Box';
|
|
|
20
20
|
import Grid$1 from '@mui/material/Grid';
|
|
21
21
|
import PolylineIcon from '@mui/icons-material/Polyline';
|
|
22
22
|
import PentagonIcon from '@mui/icons-material/Pentagon';
|
|
23
|
-
import
|
|
23
|
+
import DeleteIcon from '@mui/icons-material/Delete';
|
|
24
|
+
import TuneIcon from '@mui/icons-material/Tune';
|
|
24
25
|
import { styled as styled$1, Box } from '@mui/system';
|
|
26
|
+
import ExpandLessIcon from '@mui/icons-material/ExpandLess';
|
|
27
|
+
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
|
|
25
28
|
import { ChromePicker } from 'react-color';
|
|
26
|
-
import TuneIcon from '@mui/icons-material/Tune';
|
|
27
29
|
import Dialog from '@mui/material/Dialog';
|
|
28
30
|
import DialogActions from '@mui/material/DialogActions';
|
|
29
31
|
import DialogContent from '@mui/material/DialogContent';
|
|
@@ -34,8 +36,6 @@ import { CSS } from '@dnd-kit/utilities';
|
|
|
34
36
|
import CloseIcon from '@mui/icons-material/Close';
|
|
35
37
|
import useMediaQuery$1 from '@mui/material/useMediaQuery';
|
|
36
38
|
import { Global } from '@emotion/react';
|
|
37
|
-
import { Typography as Typography$1, SwipeableDrawer } from '@mui/material/';
|
|
38
|
-
import DeleteIcon from '@mui/icons-material/Delete';
|
|
39
39
|
import ButtonGroup from '@mui/material/ButtonGroup';
|
|
40
40
|
import ControlPointIcon from '@mui/icons-material/ControlPoint';
|
|
41
41
|
import RemoveCircleOutlineIcon from '@mui/icons-material/RemoveCircleOutline';
|
|
@@ -43,7 +43,6 @@ import Divider from '@mui/material/Divider';
|
|
|
43
43
|
import syncMove from '@mapbox/mapbox-gl-sync-move';
|
|
44
44
|
import Paper$1 from '@mui/material/Paper';
|
|
45
45
|
import * as xmldom from '@xmldom/xmldom';
|
|
46
|
-
import PropTypes from 'prop-types';
|
|
47
46
|
import { featureCollection as featureCollection$1, lineString, polygon } from '@turf/helpers';
|
|
48
47
|
import WMSCapabilities from 'wms-capabilities';
|
|
49
48
|
import InfoIcon from '@mui/icons-material/Info';
|
|
@@ -64,6 +63,9 @@ import osm2geojson from 'osm2geojson-lite';
|
|
|
64
63
|
import { feature } from 'topojson-client';
|
|
65
64
|
import * as externParser from '@tmcw/togeojson';
|
|
66
65
|
import * as d3 from 'd3';
|
|
66
|
+
import ArrowCircleDownIcon from '@mui/icons-material/ArrowCircleDown';
|
|
67
|
+
import ArrowCircleUpIcon from '@mui/icons-material/ArrowCircleUp';
|
|
68
|
+
import CenterFocusWeakIcon from '@mui/icons-material/CenterFocusWeak';
|
|
67
69
|
import { useSensor, PointerSensor, MouseSensor, useSensors, DndContext, closestCenter } from '@dnd-kit/core';
|
|
68
70
|
import { restrictToVerticalAxis } from '@dnd-kit/modifiers';
|
|
69
71
|
import PlaylistAddIcon from '@mui/icons-material/PlaylistAdd';
|
|
@@ -86,6 +88,7 @@ import DesignServicesIcon from '@mui/icons-material/DesignServices';
|
|
|
86
88
|
import PictureAsPdfIcon from '@mui/icons-material/PictureAsPdf';
|
|
87
89
|
import { useSelector, useDispatch } from 'react-redux';
|
|
88
90
|
import { createSlice, configureStore } from '@reduxjs/toolkit';
|
|
91
|
+
import KeyboardArrowRightIcon from '@mui/icons-material/KeyboardArrowRight';
|
|
89
92
|
|
|
90
93
|
/******************************************************************************
|
|
91
94
|
Copyright (c) Microsoft Corporation.
|
|
@@ -2920,7 +2923,7 @@ var MlFollowGps = function (props) {
|
|
|
2920
2923
|
isFollowed && userLocationGeoJson && (React__default.createElement(MlGeoJsonLayer, { geojson: accuracyGeoJson, type: 'fill', paint: __assign({ 'fill-color': '#cbd300', 'fill-opacity': 0.3 }, props.accuracyPaint), insertBeforeLayer: props.insertBeforeLayer })),
|
|
2921
2924
|
isFollowed && orientationCone && (React__default.createElement(MlGeoJsonLayer, { geojson: orientationCone, type: 'fill', paint: __assign({ 'fill-color': '#0000ff', 'fill-antialias': false, 'fill-opacity': 0.3 }, props.orientationConePaint), insertBeforeLayer: props.insertBeforeLayer })),
|
|
2922
2925
|
isFollowed && userLocationGeoJson && (React__default.createElement(MlGeoJsonLayer, { geojson: userLocationGeoJson, type: 'circle', paint: __assign({ 'circle-color': '#009ee0', 'circle-radius': 5, 'circle-stroke-color': '#fafaff', 'circle-stroke-width': 1 }, props.circlePaint), insertBeforeLayer: props.insertBeforeLayer })),
|
|
2923
|
-
React__default.createElement(Button, { variant: "navtools", sx: {
|
|
2926
|
+
React__default.createElement(Button, { variant: "navtools", "data-testid": "mlFollowGpsBtn", sx: {
|
|
2924
2927
|
zIndex: 1002,
|
|
2925
2928
|
color: isFollowed
|
|
2926
2929
|
? function (theme) { return theme.palette.GPS.GPSActiveColor; }
|
|
@@ -3161,7 +3164,7 @@ function LayerListFolder(_a) {
|
|
|
3161
3164
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3162
3165
|
React__default.createElement(ListItemStyled$2, null,
|
|
3163
3166
|
React__default.createElement(ListItemIconStyled$1, null,
|
|
3164
|
-
React__default.createElement(IconButtonStyled$2, { edge: "end", "aria-label": "open", onClick: function () { return setOpen(!open); } }, open ? React__default.createElement(
|
|
3167
|
+
React__default.createElement(IconButtonStyled$2, { edge: "end", "aria-label": "open", onClick: function () { return setOpen(!open); } }, open ? React__default.createElement(ExpandMoreIcon, null) : React__default.createElement(ExpandLessIcon, null)),
|
|
3165
3168
|
React__default.createElement(CheckboxStyled$1, { disabled: setVisible ? false : !visible, checked: setVisible ? visible : localVisible, onClick: function () {
|
|
3166
3169
|
if (setVisible) {
|
|
3167
3170
|
setVisible(function (val) { return !val; });
|
|
@@ -3189,7 +3192,7 @@ var ColorPicker = function (_a) {
|
|
|
3189
3192
|
var value = (props === null || props === void 0 ? void 0 : props.value) || '';
|
|
3190
3193
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3191
3194
|
React__default.createElement(Grid, { container: true, sx: { flexWrap: 'nowrap' } },
|
|
3192
|
-
React__default.createElement(Grid, {
|
|
3195
|
+
React__default.createElement(Grid, { size: 12 },
|
|
3193
3196
|
React__default.createElement(Button, { variant: "outlined", onClick: function () { return setShowPicker(true); }, sx: {
|
|
3194
3197
|
minWidth: '100%',
|
|
3195
3198
|
padding: '5px',
|
|
@@ -3434,7 +3437,8 @@ function LayerListItem(_a) {
|
|
|
3434
3437
|
var deletedRef = useRef(false);
|
|
3435
3438
|
var visibleRef = useRef(visible);
|
|
3436
3439
|
// this state variable is used for layer components that provide a paint attribute
|
|
3437
|
-
var _u = useState(((_b = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _b === void 0 ? void 0 : _b.paint) ||
|
|
3440
|
+
var _u = useState(((_b = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _b === void 0 ? void 0 : _b.paint) ||
|
|
3441
|
+
((_d = (_c = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _c === void 0 ? void 0 : _c.options) === null || _d === void 0 ? void 0 : _d.paint) ||
|
|
3438
3442
|
getDefaultPaintPropsByType(((_e = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _e === void 0 ? void 0 : _e.type) || getDefaulLayerTypeByGeometry(layerComponent.props.geojson))), paintProps = _u[0], setPaintProps = _u[1];
|
|
3439
3443
|
var _visible = useMemo(function () {
|
|
3440
3444
|
if (!visible) {
|
|
@@ -3490,7 +3494,7 @@ function LayerListItem(_a) {
|
|
|
3490
3494
|
layout: {
|
|
3491
3495
|
visibility: _visible ? 'visible' : 'none',
|
|
3492
3496
|
},
|
|
3493
|
-
options: __assign(__assign({}, (_a = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _a === void 0 ? void 0 : _a.options), (setLayerState ? {} : { paint: paintProps }))
|
|
3497
|
+
options: __assign(__assign({}, (_a = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _a === void 0 ? void 0 : _a.options), (setLayerState ? {} : { paint: paintProps })),
|
|
3494
3498
|
});
|
|
3495
3499
|
}
|
|
3496
3500
|
}
|
|
@@ -3514,7 +3518,7 @@ function LayerListItem(_a) {
|
|
|
3514
3518
|
return !current;
|
|
3515
3519
|
});
|
|
3516
3520
|
} },
|
|
3517
|
-
React__default.createElement(
|
|
3521
|
+
React__default.createElement(TuneIcon, null)))) : undefined },
|
|
3518
3522
|
React__default.createElement(CheckboxListItemIcon, null,
|
|
3519
3523
|
React__default.createElement(CheckboxStyled, { disabled: !visible, checked: localVisible, onClick: function () {
|
|
3520
3524
|
setLocalVisible(function (val) { return !val; });
|
|
@@ -3522,7 +3526,7 @@ function LayerListItem(_a) {
|
|
|
3522
3526
|
React__default.createElement(ListItemText, { variant: "layerlist", primary: name, secondary: description, primaryTypographyProps: { overflow: 'hidden' } })));
|
|
3523
3527
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3524
3528
|
props.sortable && props.layerId && !((_j = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _j === void 0 ? void 0 : _j.layers) && (React__default.createElement(SortableContainer, { layerId: props.layerId }, listContent)),
|
|
3525
|
-
!props.sortable && !((_k = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _k === void 0 ? void 0 : _k.layers) &&
|
|
3529
|
+
!props.sortable && !((_k = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _k === void 0 ? void 0 : _k.layers) && listContent,
|
|
3526
3530
|
_layerComponent,
|
|
3527
3531
|
!((_l = layerComponent === null || layerComponent === void 0 ? void 0 : layerComponent.props) === null || _l === void 0 ? void 0 : _l.layers) &&
|
|
3528
3532
|
Object.keys(paintProps).length > 0 &&
|
|
@@ -3534,7 +3538,7 @@ function LayerListItem(_a) {
|
|
|
3534
3538
|
setShowDeletionConfirmationDialog(true);
|
|
3535
3539
|
}
|
|
3536
3540
|
} },
|
|
3537
|
-
React__default.createElement(
|
|
3541
|
+
React__default.createElement(DeleteIcon, null)),
|
|
3538
3542
|
showDeletionConfirmationDialog && (React__default.createElement(ConfirmDialog, { open: showDeletionConfirmationDialog, onConfirm: function () {
|
|
3539
3543
|
if (typeof setLayerState === 'function') {
|
|
3540
3544
|
deletedRef.current = true;
|
|
@@ -3585,7 +3589,7 @@ function Sidebar(_a) {
|
|
|
3585
3589
|
lg: '350px',
|
|
3586
3590
|
}, boxSizing: 'border-box' }, drawerPaperProps === null || drawerPaperProps === void 0 ? void 0 : drawerPaperProps.sx) }), sx: __assign({ flexGrow: 1, zIndex: 105, position: 'absolute', bottom: 0, display: 'flex', flexDirection: 'column', maxWidth: { lg: '30%', md: '40%', sm: '50%', xs: '78%' } }, (drawerOpen ? {} : { left: mediaIsMobile ? '-90vw' : '-20vw' })) }, props),
|
|
3587
3591
|
React__default.createElement(DrawerHeader, __assign({}, drawerHeaderProps),
|
|
3588
|
-
React__default.createElement(Typography
|
|
3592
|
+
React__default.createElement(Typography, { variant: "h6" }, props.name),
|
|
3589
3593
|
React__default.createElement(IconButton, { onClick: setOpen
|
|
3590
3594
|
? function () {
|
|
3591
3595
|
setOpen === null || setOpen === void 0 ? void 0 : setOpen(false);
|
|
@@ -3632,7 +3636,7 @@ function Sidebar(_a) {
|
|
|
3632
3636
|
left: 0,
|
|
3633
3637
|
} },
|
|
3634
3638
|
React__default.createElement(Puller, null),
|
|
3635
|
-
React__default.createElement(Typography
|
|
3639
|
+
React__default.createElement(Typography, { variant: "h6", sx: { p: '13px' } }, props.name)),
|
|
3636
3640
|
React__default.createElement(Paper, { sx: {
|
|
3637
3641
|
px: '15px',
|
|
3638
3642
|
pb: '15px',
|
|
@@ -3679,14 +3683,16 @@ var MlMultiMeasureTool = function (props) {
|
|
|
3679
3683
|
});
|
|
3680
3684
|
};
|
|
3681
3685
|
useEffect(function () {
|
|
3682
|
-
|
|
3683
|
-
|
|
3686
|
+
if (reload) {
|
|
3687
|
+
setReload(false);
|
|
3688
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-expressions
|
|
3684
3689
|
measureState &&
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
+
setMeasureList(function (current) {
|
|
3691
|
+
var newList = __spreadArray([], current, true);
|
|
3692
|
+
newList.push(measureState);
|
|
3693
|
+
return newList;
|
|
3694
|
+
});
|
|
3695
|
+
}
|
|
3690
3696
|
}, [reload]);
|
|
3691
3697
|
useEffect(function () {
|
|
3692
3698
|
setMeasureState(undefined);
|
|
@@ -3696,7 +3702,7 @@ var MlMultiMeasureTool = function (props) {
|
|
|
3696
3702
|
React__default.createElement(Box$2, { sx: { flexGrow: 1 } },
|
|
3697
3703
|
React__default.createElement("br", null),
|
|
3698
3704
|
React__default.createElement(Grid$1, { container: true, spacing: 4, justifyContent: "flex-start" },
|
|
3699
|
-
React__default.createElement(Grid$1, {
|
|
3705
|
+
React__default.createElement(Grid$1, { size: 3 },
|
|
3700
3706
|
React__default.createElement(Tooltip, { title: "Measure Area" },
|
|
3701
3707
|
React__default.createElement(Button, { variant: "outlined", sx: {
|
|
3702
3708
|
backgroundColor: selectedMode === 'polygon'
|
|
@@ -3711,7 +3717,7 @@ var MlMultiMeasureTool = function (props) {
|
|
|
3711
3717
|
setReload(true);
|
|
3712
3718
|
} },
|
|
3713
3719
|
React__default.createElement(PentagonIcon, null)))),
|
|
3714
|
-
React__default.createElement(Grid$1, {
|
|
3720
|
+
React__default.createElement(Grid$1, { size: 3 },
|
|
3715
3721
|
React__default.createElement(Tooltip, { title: "Measure Distance" },
|
|
3716
3722
|
React__default.createElement(Button, { variant: "outlined", sx: {
|
|
3717
3723
|
backgroundColor: selectedMode === 'line'
|
|
@@ -3727,7 +3733,7 @@ var MlMultiMeasureTool = function (props) {
|
|
|
3727
3733
|
} },
|
|
3728
3734
|
React__default.createElement(PolylineIcon, null)))))),
|
|
3729
3735
|
React__default.createElement("br", null),
|
|
3730
|
-
React__default.createElement(Grid$1, {
|
|
3736
|
+
React__default.createElement(Grid$1, { size: 4 },
|
|
3731
3737
|
React__default.createElement(FormControl, null,
|
|
3732
3738
|
React__default.createElement(InputLabel, { id: "unit-select-label" }, "Unit"),
|
|
3733
3739
|
React__default.createElement(Select, { labelId: "unit-select-label", id: "unit-select", value: selectedUnit, label: "Unit", onChange: function (e) {
|
|
@@ -3799,56 +3805,24 @@ MlMultiMeasureTool.defaultProps = {
|
|
|
3799
3805
|
buttonStyleOverride: {},
|
|
3800
3806
|
};
|
|
3801
3807
|
|
|
3802
|
-
var
|
|
3803
|
-
|
|
3804
|
-
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
}, props), _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
3812
|
-
id: "g14",
|
|
3813
|
-
transform: "translate(0.67544,-1.25e-5)"
|
|
3814
|
-
}, /*#__PURE__*/React.createElement("path", {
|
|
3815
|
-
d: "m 3.34715,4.52028 c 0.22737,-1.05154 1.72745,-1.05154 1.95482,0 L 8.64912,20 H 0 Z",
|
|
3816
|
-
fill: "#cf003d"
|
|
3817
|
-
}), /*#__PURE__*/React.createElement("path", {
|
|
3818
|
-
d: "m 3.34715,35.4797 c 0.22737,1.0516 1.72745,1.0516 1.95482,0 L 8.64912,20 H 0 Z",
|
|
3819
|
-
fill: "#d3dcf0"
|
|
3820
|
-
}))));
|
|
3808
|
+
var CompassBackground = function (_a) {
|
|
3809
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, title = _a.title, onClick = _a.onClick, style = _a.style;
|
|
3810
|
+
return (React__default.createElement("svg", { width: "52", height: "53", viewBox: "0 0 52 53", fill: "none", className: className, onClick: onClick, role: title ? 'img' : 'presentation', "aria-hidden": !title, style: style },
|
|
3811
|
+
title && React__default.createElement("title", null, title),
|
|
3812
|
+
React__default.createElement("circle", { cx: "26.0001", cy: "26.1843", r: "24", fill: "white", stroke: "#009EE0", strokeWidth: "2" }),
|
|
3813
|
+
React__default.createElement("path", { d: "M26.4915 7.59161C26.3524 8.07338 25.6698 8.07338 25.5307 7.59161L24.2998 3.3276C24.2075 3.0079 24.4474 2.68893 24.7802 2.68893H27.242C27.5748 2.68893 27.8147 3.0079 27.7224 3.3276L26.4915 7.59161Z", fill: "#009EE0" }),
|
|
3814
|
+
React__default.createElement("path", { d: "M25.5085 44.7598C25.6476 44.278 26.3302 44.278 26.4693 44.7598L27.7002 49.0238C27.7925 49.3435 27.5526 49.6625 27.2198 49.6625H24.758C24.4252 49.6625 24.1853 49.3435 24.2776 49.0238L25.5085 44.7598Z", fill: "#009EE0" }),
|
|
3815
|
+
React__default.createElement("path", { d: "M44.6641 26.4915C44.1823 26.3524 44.1823 25.6698 44.6641 25.5307L48.9281 24.2998C49.2478 24.2075 49.5668 24.4474 49.5668 24.7802V27.242C49.5668 27.5747 49.2478 27.8147 48.9281 27.7224L44.6641 26.4915Z", fill: "#009EE0" }),
|
|
3816
|
+
React__default.createElement("path", { d: "M7.3959 25.6085C7.87766 25.7476 7.87766 26.4302 7.3959 26.5693L3.13189 27.8002C2.81218 27.8925 2.49321 27.6526 2.49321 27.3198L2.49321 24.858C2.49321 24.5253 2.81218 24.2853 3.13189 24.3776L7.3959 25.6085Z", fill: "#009EE0" })));
|
|
3821
3817
|
};
|
|
3822
3818
|
|
|
3823
|
-
var
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
|
|
3830
|
-
fill: "none",
|
|
3831
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
3832
|
-
}, props), _circle || (_circle = /*#__PURE__*/React.createElement("circle", {
|
|
3833
|
-
cx: 26.0001,
|
|
3834
|
-
cy: 26.1843,
|
|
3835
|
-
r: 24,
|
|
3836
|
-
fill: "white",
|
|
3837
|
-
stroke: "#009EE0",
|
|
3838
|
-
strokeWidth: 2
|
|
3839
|
-
})), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
3840
|
-
d: "M26.4915 7.59161C26.3524 8.07338 25.6698 8.07338 25.5307 7.59161L24.2998 3.3276C24.2075 3.0079 24.4474 2.68893 24.7802 2.68893H27.242C27.5748 2.68893 27.8147 3.0079 27.7224 3.3276L26.4915 7.59161Z",
|
|
3841
|
-
fill: "#009EE0"
|
|
3842
|
-
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
3843
|
-
d: "M25.5085 44.7598C25.6476 44.278 26.3302 44.278 26.4693 44.7598L27.7002 49.0238C27.7925 49.3435 27.5526 49.6625 27.2198 49.6625H24.758C24.4252 49.6625 24.1853 49.3435 24.2776 49.0238L25.5085 44.7598Z",
|
|
3844
|
-
fill: "#009EE0"
|
|
3845
|
-
})), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
|
|
3846
|
-
d: "M44.6641 26.4915C44.1823 26.3524 44.1823 25.6698 44.6641 25.5307L48.9281 24.2998C49.2478 24.2075 49.5668 24.4474 49.5668 24.7802V27.242C49.5668 27.5747 49.2478 27.8147 48.9281 27.7224L44.6641 26.4915Z",
|
|
3847
|
-
fill: "#009EE0"
|
|
3848
|
-
})), _path4 || (_path4 = /*#__PURE__*/React.createElement("path", {
|
|
3849
|
-
d: "M7.3959 25.6085C7.87766 25.7476 7.87766 26.4302 7.3959 26.5693L3.13189 27.8002C2.81218 27.8925 2.49321 27.6526 2.49321 27.3198L2.49321 24.858C2.49321 24.5253 2.81218 24.2853 3.13189 24.3776L7.3959 25.6085Z",
|
|
3850
|
-
fill: "#009EE0"
|
|
3851
|
-
})));
|
|
3819
|
+
var CompassNeedle = function (_a) {
|
|
3820
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, title = _a.title, onClick = _a.onClick, style = _a.style;
|
|
3821
|
+
return (React__default.createElement("svg", { width: "10", height: "40", viewBox: "0 0 10 40", fill: "none", className: className, onClick: onClick, role: title ? 'img' : 'presentation', "aria-hidden": !title, style: style },
|
|
3822
|
+
title && React__default.createElement("title", null, title),
|
|
3823
|
+
React__default.createElement("g", { transform: "translate(0.67544,-1.25e-5)" },
|
|
3824
|
+
React__default.createElement("path", { d: "m 3.34715,4.52028 c 0.22737,-1.05154 1.72745,-1.05154 1.95482,0 L 8.64912,20 H 0 Z", fill: "#cf003d" }),
|
|
3825
|
+
React__default.createElement("path", { d: "m 3.34715,35.4797 c 0.22737,1.0516 1.72745,1.0516 1.95482,0 L 8.64912,20 H 0 Z", fill: "#d3dcf0" }))));
|
|
3852
3826
|
};
|
|
3853
3827
|
|
|
3854
3828
|
var BoxStyled$2 = styled(Box$1)(function (_a) {
|
|
@@ -3954,9 +3928,9 @@ var MlNavigationCompass = function (props) {
|
|
|
3954
3928
|
return (React__default.createElement(React__default.Fragment, null,
|
|
3955
3929
|
React__default.createElement(BoxStyled$2, { sx: __assign({}, props.style) },
|
|
3956
3930
|
React__default.createElement(CompassBox, { onClick: rotate, sx: __assign({}, props.backgroundStyle) },
|
|
3957
|
-
React__default.createElement(
|
|
3931
|
+
React__default.createElement(CompassBackground, { style: { position: 'absolute', top: 0, left: 0 } }),
|
|
3958
3932
|
React__default.createElement(NeedleBox, { onClick: rotate, sx: __assign({}, props.needleStyle) },
|
|
3959
|
-
React__default.createElement(
|
|
3933
|
+
React__default.createElement(CompassNeedle, { style: {
|
|
3960
3934
|
transform: 'rotate(' + (bearing > 0 ? '-' + bearing : -1 * bearing) + 'deg)',
|
|
3961
3935
|
} }))))));
|
|
3962
3936
|
};
|
|
@@ -4270,20 +4244,11 @@ MlLayerMagnify.defaultProps = {
|
|
|
4270
4244
|
magnifierStyle: {},
|
|
4271
4245
|
};
|
|
4272
4246
|
|
|
4273
|
-
var
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4278
|
-
fill: "none",
|
|
4279
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
4280
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
4281
|
-
d: "M29.5 21.25L35.75 15L29.5 8.75V21.25Z",
|
|
4282
|
-
fill: "#009EE0"
|
|
4283
|
-
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
4284
|
-
d: "M17.5 8.75L11.25 15L17.5 21.25V8.75Z",
|
|
4285
|
-
fill: "#009EE0"
|
|
4286
|
-
})));
|
|
4247
|
+
var SwipeIcon = function (_a) {
|
|
4248
|
+
var _b = _a.className, className = _b === void 0 ? '' : _b, title = _a.title, onClick = _a.onClick, style = _a.style, color = _a.color;
|
|
4249
|
+
return (React__default.createElement("svg", { viewBox: "0 0 47 30", fill: "none", xmlns: "http://www.w3.org/2000/svg", className: className, onClick: onClick, role: title ? 'img' : 'presentation', "aria-hidden": !title, style: style, color: color },
|
|
4250
|
+
React__default.createElement("path", { d: "M29.5 21.25L35.75 15L29.5 8.75V21.25Z", fill: "#009EE0" }),
|
|
4251
|
+
React__default.createElement("path", { d: "M17.5 8.75L11.25 15L17.5 21.25V8.75Z", fill: "#009EE0" })));
|
|
4287
4252
|
};
|
|
4288
4253
|
|
|
4289
4254
|
/**
|
|
@@ -4377,7 +4342,7 @@ var MlLayerSwipe = function (props) {
|
|
|
4377
4342
|
};
|
|
4378
4343
|
}, [mapContext]);
|
|
4379
4344
|
return (React__default.createElement("div", { style: __assign({ position: 'absolute', left: swipeX + '%', top: '50%', borderRadius: '50%', width: '65px', height: '65px', background: 'rgba(234, 235, 241, 0.75)', border: '2px solid rgba(0, 158, 224, 0.75)', cursor: 'pointer', zIndex: '110', marginLeft: '-35px', marginTop: '-50px', textAlign: 'center', lineHeight: '91px', fontSize: '2em', color: '#fafafa', userSelect: 'none' }, props.buttonStyle), onTouchStart: onDown, onMouseDown: onDown },
|
|
4380
|
-
React__default.createElement(
|
|
4345
|
+
React__default.createElement(SwipeIcon, { color: "#0066ff", style: {
|
|
4381
4346
|
width: '65px',
|
|
4382
4347
|
height: '65px',
|
|
4383
4348
|
justifyContent: 'center',
|
|
@@ -5564,12 +5529,6 @@ var MlShareMapState = function (props) {
|
|
|
5564
5529
|
MlShareMapState.defaultProps = {
|
|
5565
5530
|
mapId: undefined,
|
|
5566
5531
|
};
|
|
5567
|
-
MlShareMapState.propTypes = {
|
|
5568
|
-
/**
|
|
5569
|
-
* Id of the target MapLibre instance in mapContext
|
|
5570
|
-
*/
|
|
5571
|
-
mapId: PropTypes.string,
|
|
5572
|
-
};
|
|
5573
5532
|
|
|
5574
5533
|
function getElevationData(_geojsonInfo, elevationFactor) {
|
|
5575
5534
|
var createStep = function (x, y, z, x2, y2) {
|
|
@@ -5915,12 +5874,6 @@ var MlWmsFeatureInfoPopup = function (props) {
|
|
|
5915
5874
|
MlWmsFeatureInfoPopup.defaultProps = {
|
|
5916
5875
|
mapId: undefined,
|
|
5917
5876
|
};
|
|
5918
|
-
MlWmsFeatureInfoPopup.propTypes = {
|
|
5919
|
-
/**
|
|
5920
|
-
* Id of the target MapLibre instance in mapContext
|
|
5921
|
-
*/
|
|
5922
|
-
mapId: PropTypes.string,
|
|
5923
|
-
};
|
|
5924
5877
|
|
|
5925
5878
|
var defaultProps = {
|
|
5926
5879
|
visible: true,
|
|
@@ -6032,51 +5985,6 @@ var MlWmsLayer = function (props) {
|
|
|
6032
5985
|
return React__default.createElement(React__default.Fragment, null);
|
|
6033
5986
|
};
|
|
6034
5987
|
MlWmsLayer.defaultProps = __assign({}, defaultProps);
|
|
6035
|
-
MlWmsLayer.propTypes = {
|
|
6036
|
-
/**
|
|
6037
|
-
* WMS URL
|
|
6038
|
-
*/
|
|
6039
|
-
url: PropTypes.string.isRequired,
|
|
6040
|
-
/**
|
|
6041
|
-
* URL query parameters that will be added to the WMS URL. A layers property (string) is mandatory. Any value defined on this attribute will extend the default object.
|
|
6042
|
-
*/
|
|
6043
|
-
urlParameters: PropTypes.shape({
|
|
6044
|
-
layers: PropTypes.string.isRequired,
|
|
6045
|
-
bbox: PropTypes.string,
|
|
6046
|
-
format: PropTypes.string,
|
|
6047
|
-
service: PropTypes.string,
|
|
6048
|
-
version: PropTypes.string,
|
|
6049
|
-
request: PropTypes.string,
|
|
6050
|
-
srs: PropTypes.string,
|
|
6051
|
-
width: PropTypes.number,
|
|
6052
|
-
height: PropTypes.number,
|
|
6053
|
-
}),
|
|
6054
|
-
/**
|
|
6055
|
-
* Id of the target MapLibre instance in mapContext
|
|
6056
|
-
*/
|
|
6057
|
-
mapId: PropTypes.string,
|
|
6058
|
-
/**
|
|
6059
|
-
* MapLibre attribution shown in the bottom right of the map, if this layer is visible
|
|
6060
|
-
*/
|
|
6061
|
-
attribution: PropTypes.string,
|
|
6062
|
-
/**
|
|
6063
|
-
* Object that is passed to the MapLibre.addLayer call as config option parameter
|
|
6064
|
-
*/
|
|
6065
|
-
layerOptions: PropTypes.object,
|
|
6066
|
-
/**
|
|
6067
|
-
* Object that is passed to the MapLibre.addSource call as config option parameter
|
|
6068
|
-
*/
|
|
6069
|
-
sourceOptions: PropTypes.object,
|
|
6070
|
-
/**
|
|
6071
|
-
* Id of an existing layer in the mapLibre instance to help specify the layer order
|
|
6072
|
-
* This layer will be visually beneath the layer with the "insertBeforeLayer" id.
|
|
6073
|
-
*/
|
|
6074
|
-
insertBeforeLayer: PropTypes.string,
|
|
6075
|
-
/**
|
|
6076
|
-
* Sets layer "visibility" property to "visible" if true or "none" if false
|
|
6077
|
-
*/
|
|
6078
|
-
visible: PropTypes.bool,
|
|
6079
|
-
};
|
|
6080
5988
|
|
|
6081
5989
|
function useWms(props) {
|
|
6082
5990
|
// Use a useRef hook to reference the layer object to be able to access it later inside useEffect hooks
|
|
@@ -6388,7 +6296,7 @@ var MlWmsLoader = function (props) {
|
|
|
6388
6296
|
}
|
|
6389
6297
|
}, disabled: !(layers === null || layers === void 0 ? void 0 : layers.some(function (layer) { return layer.visible && layer.queryable; })) },
|
|
6390
6298
|
React__default.createElement(InfoIcon, null))),
|
|
6391
|
-
React__default.createElement(IconButton$1, { edge: props.showDeleteButton ? false : 'end', sx: __assign({ padding: '4px', marginTop: '-3px' }, (props.showDeleteButton ? { marginRight: '4px' } : {})), "aria-label": "open", onClick: function () { return setOpen(function (current) { return !current; }); } }, open ? React__default.createElement(
|
|
6299
|
+
React__default.createElement(IconButton$1, { edge: props.showDeleteButton ? false : 'end', sx: __assign({ padding: '4px', marginTop: '-3px' }, (props.showDeleteButton ? { marginRight: '4px' } : {})), "aria-label": "open", onClick: function () { return setOpen(function (current) { return !current; }); } }, open ? React__default.createElement(ExpandLessIcon, null) : React__default.createElement(ExpandMoreIcon, null)),
|
|
6392
6300
|
props.showDeleteButton && (React__default.createElement(React__default.Fragment, null,
|
|
6393
6301
|
React__default.createElement(IconButton$1, { "aria-label": "delete", edge: "end", onClick: function () {
|
|
6394
6302
|
if (typeof props.onConfigChange === 'function') {
|
|
@@ -6752,9 +6660,8 @@ function TemporalControllerPlayer(props) {
|
|
|
6752
6660
|
flexShrink: 0,
|
|
6753
6661
|
'& .MuiDrawer-paper': mediaIsMobile ? mobileScreenBoxStyle : bigScreenBoxStyle,
|
|
6754
6662
|
} },
|
|
6755
|
-
React__default.createElement(Grid, { container: true },
|
|
6756
|
-
|
|
6757
|
-
React__default.createElement(Grid, { item: true, xs: mediaIsMobile ? 12 : 6, textAlign: "center" },
|
|
6663
|
+
React__default.createElement(Grid, { container: true, alignItems: "center", justifyContent: "space-between" },
|
|
6664
|
+
React__default.createElement(Grid, { item: true, xs: 12, sm: 10, textAlign: "center" },
|
|
6758
6665
|
React__default.createElement(Button, { onClick: handleFastRewind },
|
|
6759
6666
|
React__default.createElement(FastRewindIcon, null)),
|
|
6760
6667
|
React__default.createElement(Button, { onClick: handleStop },
|
|
@@ -6762,8 +6669,11 @@ function TemporalControllerPlayer(props) {
|
|
|
6762
6669
|
React__default.createElement(Button, { onClick: handlePlayPause }, isPlaying ? React__default.createElement(PauseIcon, null) : React__default.createElement(PlayArrowIcon, null)),
|
|
6763
6670
|
React__default.createElement(Button, { onClick: handleFastForward },
|
|
6764
6671
|
React__default.createElement(FastForwardIcon, null))),
|
|
6765
|
-
props.display && !mediaIsMobile && (
|
|
6766
|
-
|
|
6672
|
+
props.display && !mediaIsMobile && (
|
|
6673
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
6674
|
+
// @ts-expect-error
|
|
6675
|
+
React__default.createElement(Grid, { item: true, xs: 12, sm: 5, textAlign: "right" },
|
|
6676
|
+
React__default.createElement(Typography, { variant: 'h5', sx: { paddingRight: '25px' } }, Math.floor(currentVal))))),
|
|
6767
6677
|
React__default.createElement(Slider, { sx: {
|
|
6768
6678
|
position: 'flex',
|
|
6769
6679
|
width: '95%',
|
|
@@ -7767,9 +7677,6 @@ var SimpleDataProvider = function (props) {
|
|
|
7767
7677
|
};
|
|
7768
7678
|
return (React__default.createElement(SimpleDataContextProvider, { value: value }, props.children));
|
|
7769
7679
|
};
|
|
7770
|
-
SimpleDataProvider.propTypes = {
|
|
7771
|
-
children: PropTypes.node.isRequired,
|
|
7772
|
-
};
|
|
7773
7680
|
|
|
7774
7681
|
var IconButtonStyled$1 = styled(IconButton)({
|
|
7775
7682
|
padding: '4px',
|
|
@@ -7877,13 +7784,13 @@ function LayerListItemFactory(props) {
|
|
|
7877
7784
|
React__default.createElement(IconButtonStyled$1, { disabled: idx === layers.length - 1, onClick: function () {
|
|
7878
7785
|
layerContext.moveDown(layer.id || '');
|
|
7879
7786
|
} },
|
|
7880
|
-
React__default.createElement(
|
|
7787
|
+
React__default.createElement(ArrowCircleDownIcon, null)),
|
|
7881
7788
|
React__default.createElement(IconButtonStyled$1, { disabled: idx === 0, onClick: function () {
|
|
7882
7789
|
layerContext.moveUp(layer.id || '');
|
|
7883
7790
|
} },
|
|
7884
|
-
React__default.createElement(
|
|
7791
|
+
React__default.createElement(ArrowCircleUpIcon, null)),
|
|
7885
7792
|
React__default.createElement(IconButtonStyled$1, { onClick: function () { return fitLayer(layer); } },
|
|
7886
|
-
React__default.createElement(
|
|
7793
|
+
React__default.createElement(CenterFocusWeakIcon, null))), setLayerState: function (layerConfig) {
|
|
7887
7794
|
return setLayers === null || setLayers === void 0 ? void 0 : setLayers(function (current) {
|
|
7888
7795
|
var _layers = __spreadArray([], current, true);
|
|
7889
7796
|
if (layerConfig === false) {
|
|
@@ -7923,26 +7830,26 @@ function LayerListItemFactory(props) {
|
|
|
7923
7830
|
React__default.createElement(IconButtonStyled$1, { disabled: idx === layers.length - 1, onClick: function () {
|
|
7924
7831
|
layerContext.moveDown(layer.id || '');
|
|
7925
7832
|
} },
|
|
7926
|
-
React__default.createElement(
|
|
7833
|
+
React__default.createElement(ArrowCircleDownIcon, null)),
|
|
7927
7834
|
React__default.createElement(IconButtonStyled$1, { disabled: idx === 0, onClick: function () {
|
|
7928
7835
|
layerContext.moveUp(layer.id || '');
|
|
7929
7836
|
} },
|
|
7930
|
-
React__default.createElement(
|
|
7837
|
+
React__default.createElement(ArrowCircleUpIcon, null)),
|
|
7931
7838
|
React__default.createElement(IconButtonStyled$1, { onClick: function () { return fitLayer(layer); } },
|
|
7932
|
-
React__default.createElement(
|
|
7839
|
+
React__default.createElement(CenterFocusWeakIcon, null))) }))));
|
|
7933
7840
|
case 'vt':
|
|
7934
7841
|
return (React__default.createElement(React__default.Fragment, { key: (layer === null || layer === void 0 ? void 0 : layer.id) + '_listItem' },
|
|
7935
7842
|
React__default.createElement(LayerListItem, { key: layer.id, name: (layer === null || layer === void 0 ? void 0 : layer.name) || (layer === null || layer === void 0 ? void 0 : layer.type) + ' layer' || 'unnamed layer', layerComponent: React__default.createElement(MlVectorTileLayer, { layers: ((_c = layer === null || layer === void 0 ? void 0 : layer.config) === null || _c === void 0 ? void 0 : _c.layers) || [], key: layer.id, mapId: layer === null || layer === void 0 ? void 0 : layer.config.mapId, sourceOptions: (_d = layer === null || layer === void 0 ? void 0 : layer.config) === null || _d === void 0 ? void 0 : _d.sourceOptions, layerId: layer.id, url: (_e = layer === null || layer === void 0 ? void 0 : layer.config) === null || _e === void 0 ? void 0 : _e.url }), buttons: React__default.createElement(React__default.Fragment, null,
|
|
7936
7843
|
React__default.createElement(IconButtonStyled$1, { key: layer.id + '_button1', disabled: idx === layers.length - 1, onClick: function () {
|
|
7937
7844
|
layerContext.moveDown(layer.id || '');
|
|
7938
7845
|
} },
|
|
7939
|
-
React__default.createElement(
|
|
7846
|
+
React__default.createElement(ArrowCircleDownIcon, null)),
|
|
7940
7847
|
React__default.createElement(IconButtonStyled$1, { key: layer.id + '_button2', disabled: idx === 0, onClick: function () {
|
|
7941
7848
|
layerContext.moveUp(layer.id || '');
|
|
7942
7849
|
} },
|
|
7943
|
-
React__default.createElement(
|
|
7850
|
+
React__default.createElement(ArrowCircleUpIcon, null)),
|
|
7944
7851
|
React__default.createElement(IconButtonStyled$1, { onClick: function () { return fitLayer(layer); } },
|
|
7945
|
-
React__default.createElement(
|
|
7852
|
+
React__default.createElement(CenterFocusWeakIcon, null))), setLayerState: function (layerConfig) {
|
|
7946
7853
|
return setLayers === null || setLayers === void 0 ? void 0 : setLayers(function (current) {
|
|
7947
7854
|
var _layers = __spreadArray([], current, true);
|
|
7948
7855
|
if (layerConfig === false) {
|
|
@@ -21682,18 +21589,18 @@ function LayerTreeListItem(props) {
|
|
|
21682
21589
|
React__default.createElement(IconButtonStyled, { disabled: false, onClick: function () {
|
|
21683
21590
|
moveDown(layer.uuid);
|
|
21684
21591
|
} },
|
|
21685
|
-
React__default.createElement(
|
|
21592
|
+
React__default.createElement(ArrowCircleDownIcon, null)),
|
|
21686
21593
|
React__default.createElement(IconButtonStyled, { disabled: false, onClick: function () {
|
|
21687
21594
|
moveUp(layer.uuid);
|
|
21688
21595
|
} },
|
|
21689
|
-
React__default.createElement(
|
|
21596
|
+
React__default.createElement(ArrowCircleUpIcon, null)),
|
|
21690
21597
|
layer.configurable && (React__default.createElement(React__default.Fragment, null,
|
|
21691
21598
|
React__default.createElement(TuneIconButton, { edge: 'end', "aria-label": "settings", onClick: function () {
|
|
21692
21599
|
setPaintPropsFormVisible(function (current) {
|
|
21693
21600
|
return !current;
|
|
21694
21601
|
});
|
|
21695
21602
|
} },
|
|
21696
|
-
React__default.createElement(
|
|
21603
|
+
React__default.createElement(TuneIcon, null))))) },
|
|
21697
21604
|
React__default.createElement(CheckboxListItemIcon, null,
|
|
21698
21605
|
React__default.createElement(CheckboxStyled, { checked: visible, disabled: layer.masterVisible === false, onClick: function () { return handleToggleVisibility(visible); } })),
|
|
21699
21606
|
React__default.createElement(ListItemText, { variant: "layerlist", primary: layer.name || '', secondary: props.description, primaryTypographyProps: { overflow: 'hidden' } }),
|
|
@@ -21701,7 +21608,7 @@ function LayerTreeListItem(props) {
|
|
|
21701
21608
|
layer.configurable && paintPropsFormVisible && (React__default.createElement(React__default.Fragment, null,
|
|
21702
21609
|
props.showDeleteButton && (React__default.createElement(React__default.Fragment, null,
|
|
21703
21610
|
React__default.createElement(DeleteIconButton, { edge: "end", "aria-label": "delete", onClick: function () { } },
|
|
21704
|
-
React__default.createElement(
|
|
21611
|
+
React__default.createElement(DeleteIcon, null)),
|
|
21705
21612
|
showDeletionConfirmationDialog && (React__default.createElement(ConfirmDialog, { open: showDeletionConfirmationDialog, onConfirm: function () {
|
|
21706
21613
|
setShowDeletionConfirmationDialog(false);
|
|
21707
21614
|
}, onCancel: function () {
|
|
@@ -21713,7 +21620,7 @@ function LayerTreeListItem(props) {
|
|
|
21713
21620
|
return (React__default.createElement(React__default.Fragment, null,
|
|
21714
21621
|
React__default.createElement(ListItemStyled, { key: layer.uuid, sx: __assign({}, props.listItemSx), secondaryAction: undefined },
|
|
21715
21622
|
React__default.createElement(ListItemIconStyled, null,
|
|
21716
|
-
React__default.createElement(IconButtonStyled, { edge: "end", "aria-label": "open", onClick: function () { return setOpen(!open); } }, open ? React__default.createElement(
|
|
21623
|
+
React__default.createElement(IconButtonStyled, { edge: "end", "aria-label": "open", onClick: function () { return setOpen(!open); } }, open ? React__default.createElement(ExpandMoreIcon, null) : React__default.createElement(KeyboardArrowRightIcon, null)),
|
|
21717
21624
|
React__default.createElement(CheckboxListItemIcon, null,
|
|
21718
21625
|
React__default.createElement(CheckboxStyled, { checked: layer.visible, disabled: layer.masterVisible === false, onClick: function () { var _a; return handleToggleVisibility((_a = layer.visible) !== null && _a !== void 0 ? _a : false); } }))),
|
|
21719
21626
|
React__default.createElement(ListItemText, { primary: layer.name, secondary: props.description, primaryTypographyProps: { overflow: 'hidden' } })),
|
|
@@ -21743,7 +21650,7 @@ function LayerTreeListItem(props) {
|
|
|
21743
21650
|
return (React__default.createElement(React__default.Fragment, null,
|
|
21744
21651
|
React__default.createElement(ListItemStyled, { key: layer.uuid, sx: __assign({}, props.listItemSx) },
|
|
21745
21652
|
React__default.createElement(ListItemIconStyled, null,
|
|
21746
|
-
React__default.createElement(IconButtonStyled, { edge: "end", "aria-label": "open", onClick: function () { return setOpen(!open); } }, open ? React__default.createElement(
|
|
21653
|
+
React__default.createElement(IconButtonStyled, { edge: "end", "aria-label": "open", onClick: function () { return setOpen(!open); } }, open ? React__default.createElement(ExpandMoreIcon, null) : React__default.createElement(KeyboardArrowRightIcon, null)),
|
|
21747
21654
|
React__default.createElement(CheckboxListItemIcon, null,
|
|
21748
21655
|
React__default.createElement(CheckboxStyled, { checked: layer.visible, disabled: layer.masterVisible, onClick: function () { return handleToggleVisibility(layer.visible ? layer.visible : false); } }))),
|
|
21749
21656
|
React__default.createElement(ListItemText, { primary: layer.name, secondary: props.description, primaryTypographyProps: { overflow: 'hidden' } })),
|