aboutsummaryrefslogtreecommitdiff
path: root/modern/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-07-02 10:48:11 -0700
committerAnton Tananaev <anton@traccar.org>2022-07-02 10:48:11 -0700
commit4ccdf309eb6d3c899c629911a3b7df4842e3f35d (patch)
treea3ecd2d0b81f318e6e43290844d55f361d48c458 /modern/src/main
parentfd83ca07e5544a1d7b4a91e4c5f68a7f5f2189a6 (diff)
downloadtrackermap-web-4ccdf309eb6d3c899c629911a3b7df4842e3f35d.tar.gz
trackermap-web-4ccdf309eb6d3c899c629911a3b7df4842e3f35d.tar.bz2
trackermap-web-4ccdf309eb6d3c899c629911a3b7df4842e3f35d.zip
Add map scale control
Diffstat (limited to 'modern/src/main')
-rw-r--r--modern/src/main/MainPage.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/modern/src/main/MainPage.js b/modern/src/main/MainPage.js
index a3d39b15..025bb405 100644
--- a/modern/src/main/MainPage.js
+++ b/modern/src/main/MainPage.js
@@ -35,6 +35,7 @@ import MapPositions from '../map/MapPositions';
import MapDirection from '../map/MapDirection';
import MapOverlay from '../map/overlay/MapOverlay';
import MapGeocoder from '../map/geocoder/MapGeocoder';
+import MapScale from '../map/MapScale';
const useStyles = makeStyles((theme) => ({
root: {
@@ -213,6 +214,7 @@ const MainPage = () => {
<MapSelectedDevice />
<PoiMap />
</MapView>
+ <MapScale />
<MapCurrentLocation />
<MapGeocoder />
{desktop && <MapPadding left={parseInt(theme.dimensions.drawerWidthDesktop, 10)} />}