diff options
author | Anton Tananaev <anton@traccar.org> | 2022-05-04 17:26:35 -0700 |
---|---|---|
committer | Anton Tananaev <anton@traccar.org> | 2022-05-04 17:26:35 -0700 |
commit | 53fd7f27b8a84b49ef7e4dafbc9e8ac985d7f3af (patch) | |
tree | 262eb6caa4d529258d447b6ea0d046a2b6492938 /modern/src/settings | |
parent | 3d08afc41a96b347eac2ca5c66d23da65dc814af (diff) | |
download | trackermap-web-53fd7f27b8a84b49ef7e4dafbc9e8ac985d7f3af.tar.gz trackermap-web-53fd7f27b8a84b49ef7e4dafbc9e8ac985d7f3af.tar.bz2 trackermap-web-53fd7f27b8a84b49ef7e4dafbc9e8ac985d7f3af.zip |
Option to disable map clustering
Diffstat (limited to 'modern/src/settings')
-rw-r--r-- | modern/src/settings/PreferencesPage.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/modern/src/settings/PreferencesPage.js b/modern/src/settings/PreferencesPage.js index d9d0c87e..3c7862c7 100644 --- a/modern/src/settings/PreferencesPage.js +++ b/modern/src/settings/PreferencesPage.js @@ -25,6 +25,7 @@ const PreferencesPage = () => { const [mapLiveRoutes, setMapLiveRoutes] = usePersistedState('mapLiveRoutes', false); const [mapFollow, setMapFollow] = usePersistedState('mapFollow', false); + const [mapCluster, setMapCluster] = usePersistedState('mapCluster', true); return ( <OptionsLayout> @@ -59,6 +60,10 @@ const PreferencesPage = () => { control={<Checkbox checked={mapFollow} onChange={(event) => setMapFollow(event.target.checked)} />} label={t('deviceFollow')} /> + <FormControlLabel + control={<Checkbox checked={mapCluster} onChange={(event) => setMapCluster(event.target.checked)} />} + label={t('mapClustering')} + /> </AccordionDetails> </Accordion> </Container> |