File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
packages/viewer/src/modules/map/components/toolbox Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -14,15 +14,13 @@ const geolocationStore = useGeolocationStore()
1414const positionStore = usePositionStore ()
1515const { t } = useI18n ()
1616
17- // Show recenter button when geolocation is active
17+ // Show recenter button when geolocation is active but not tracking
1818const showRecenterButton = computed (() => {
19- return geolocationStore .active && geolocationStore .position !== undefined
19+ return geolocationStore .active && geolocationStore .position !== undefined && ! geolocationStore . tracking
2020})
2121
22- // Show tooltip based on tracking state
23- const tooltipContent = computed (() => {
24- return geolocationStore .tracking ? ' geoloc_stop_tracking' : ' re_center_map'
25- })
22+ // Tooltip always shows "re-center map" since button is hidden when tracking
23+ const tooltipContent = ' re_center_map'
2624
2725function toggleTracking(): void {
2826 // Toggle tracking mode
@@ -52,7 +50,6 @@ function toggleTracking(): void {
5250 class =" toolbox-button d-print-none"
5351 data-cy =" recenter-button"
5452 type =" button"
55- :class =" { active: geolocationStore.tracking }"
5653 @click =" toggleTracking"
5754 >
5855 <FontAwesomeIcon
You can’t perform that action at this time.
0 commit comments