Skip to content

Commit ef4688a

Browse files
committed
PB-2068: Remove comments.
1 parent 0df5e49 commit ef4688a

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

packages/viewer/src/modules/map/components/toolbox/GeolocButton.vue

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,6 @@ const tooltipContent = computed(() => {
3535
})
3636
3737
function toggleGeolocation(): void {
38-
console.log(
39-
'[toggleGeolocation] Before state, geolocationStore.active: ',
40-
geolocationStore.active,
41-
'geolocationStore.tracking: ',
42-
geolocationStore.tracking
43-
)
44-
4538
// Simply toggle geolocation on/off
4639
geolocationStore.toggleGeolocation(dispatcher)
4740
@@ -53,13 +46,6 @@ function toggleGeolocation(): void {
5346
positionStore.setAutoRotation(false, dispatcher)
5447
}
5548
}
56-
57-
console.log(
58-
'[toggleGeolocation] After state, geolocationStore.active: ',
59-
geolocationStore.active,
60-
'geolocationStore.tracking: ',
61-
geolocationStore.tracking
62-
)
6349
}
6450
</script>
6551

packages/viewer/src/store/modules/position/actions/setCenter.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,8 @@ export default function setCenter(
4949
dispatcher.name === 'RecenterButton.vue' ||
5050
dispatcher.name === 'OpenLayersGeolocationFeedback.vue'
5151

52-
console.log('[setCenter] dispatcher.name:', dispatcher.name, 'tracking:', geolocationStore.tracking, 'position !== center:', geolocationStore.position !== center, 'isFromGeolocation:', isFromGeolocation)
53-
5452
if (geolocationStore.tracking && geolocationStore.position !== center && !isFromGeolocation) {
5553
// if we moved the map we disabled the geolocation tracking (unless the tracking moved the map)
56-
console.log('[setCenter] Disabling tracking because center changed from non-geolocation source')
5754
geolocationStore.setGeolocationTracking(false, dispatcher)
5855
this.setAutoRotation(false, dispatcher)
5956
}

0 commit comments

Comments
 (0)