Projekt

Obecné

Profil

« Předchozí | Další » 

Revize 56018f1c

Přidáno uživatelem Václav Honzík před asi 2 roky(ů)

right click popup menu

re #9741

Zobrazit rozdíly:

frontend/src/features/TrackingTool/TrackingTool.tsx
4 4
    CardContent,
5 5
    Grid,
6 6
    Stack,
7
    ThemeProvider,
7 8
    Typography,
8 9
} from '@mui/material'
9 10
import { Fragment, useEffect, useRef } from 'react'
......
23 24
import GeoJsonImportDialog from './Upload/GeoJsonImportDialog'
24 25
import ProcessedTextDisplay from './ProcessedText/ProcessedTextDisplay'
25 26
import DraggableMarkerList from './DraggableList/DraggableMarkerList'
27
import RightClickPopupMenu from './Map/RightClickPopupMenu'
28
import { buildTheme, getPalette } from '../Theme/ThemeWrapper'
29

  
30
const mapTheme = buildTheme('light')
26 31

  
27 32
// Page with tracking tool
28 33
const TrackingTool = () => {
......
136 141
                        width: '100%',
137 142
                    }}
138 143
                >
139
                    <MapContainer
140
                        center={[mapCenter[0], mapCenter[1]]}
141
                        zoom={mapConfig.defaultZoom}
142
                        style={{ height: '100%', minHeight: '100%' }}
143
                        whenCreated={(map) => {
144
                            mapRef.current = map
145
                        }}
146
                    >
147
                        <TileLayer
148
                            attribution={mapConfig.attribution}
149
                            url={mapConfig.url}
150
                        />
151
                        {pathVariants?.map((pathVariant, idx) => (
152
                            <MapPath idx={idx} />
153
                        ))}
154
                    </MapContainer>
144
                    <ThemeProvider theme={mapTheme}>
145
                        <MapContainer
146
                            center={[mapCenter[0], mapCenter[1]]}
147
                            zoom={mapConfig.defaultZoom}
148
                            style={{ height: '100%', minHeight: '100%' }}
149
                            whenCreated={(map) => {
150
                                mapRef.current = map
151
                            }}
152
                        >
153
                            <TileLayer
154
                                attribution={mapConfig.attribution}
155
                                url={mapConfig.url}
156
                            />
157
                            {pathVariants?.map((pathVariant, idx) => (
158
                                <MapPath idx={idx} />
159
                            ))}
160
                            <RightClickPopupMenu />
161
                        </MapContainer>
162
                    </ThemeProvider>
155 163
                </Grid>
156 164
                <Grid container sx={{ mt: 1, mb: 20 }} spacing={1}>
157 165
                    <Grid item xs={12} md={6}>

Také k dispozici: Unified diff