diff options
author | Anton Tananaev <anton@traccar.org> | 2022-08-02 21:06:54 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-08-02 21:06:54 -0700 |
commit | c76053a1c40328a3ae734ea0390d45c2f52283b5 (patch) | |
tree | ccf83a368af3f8ad1fa17f398672528228dd7aed /modern/src/other/EventPage.js | |
parent | 95450204a5b7616233385ed588c00ee4033597d3 (diff) | |
download | trackermap-web-c76053a1c40328a3ae734ea0390d45c2f52283b5.tar.gz trackermap-web-c76053a1c40328a3ae734ea0390d45c2f52283b5.tar.bz2 trackermap-web-c76053a1c40328a3ae734ea0390d45c2f52283b5.zip |
Fix event page
Diffstat (limited to 'modern/src/other/EventPage.js')
-rw-r--r-- | modern/src/other/EventPage.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/other/EventPage.js b/modern/src/other/EventPage.js index f84e1e5e..7f5d32ba 100644 --- a/modern/src/other/EventPage.js +++ b/modern/src/other/EventPage.js @@ -9,6 +9,7 @@ import { useNavigate, useParams } from 'react-router-dom'; import { useEffectAsync } from '../reactHelper'; import { useTranslation } from '../common/components/LocalizationProvider'; import MapView from '../map/core/MapView'; +import MapCamera from '../map/MapCamera'; import MapPositions from '../map/MapPositions'; const useStyles = makeStyles(() => ({ @@ -71,6 +72,7 @@ const EventPage = () => { <MapView> {position && <MapPositions positions={[position]} />} </MapView> + {position && <MapCamera latitude={position.latitude} longitude={position.longitude} />} </div> </div> ); |