Skip to content

Commit

Permalink
PB-494: Remove unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ismailsunni committed Jun 6, 2024
1 parent 8ad4ffa commit b4511f2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/modules/map/components/cesium/CesiumMouseTracker.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,11 @@ const i18n = useI18n()
const is3DReady = computed(() => store.state.cesium.isViewerReady)
const projection = computed(() => store.state.position.projection)
let handler = null
const dispatcher = { dispatcher: 'CesiumMouseTracker.vue' }
const getViewer = inject('getViewer', () => {}, true)
let handler = null
watch(
is3DReady,
(newValue) => {
Expand All @@ -36,6 +37,7 @@ onMounted(() => {
setupHandler()
})
})
onUnmounted(() => {
if (handler) {
handler.removeInputAction(ScreenSpaceEventType.MOUSE_MOVE)
Expand All @@ -55,9 +57,7 @@ function setupHandler() {
const cartographic = Cartographic.fromCartesian(cartesian)
const longitude = Math.toDegrees(cartographic.longitude)
const latitude = Math.toDegrees(cartographic.latitude)
// Transform to web mercator
let coordinate = transform([longitude, latitude], 'EPSG:4326', projection.value)
window.projection = projection.value
coordinate.push(cartographic.height)
mousePosition.value.textContent = formatCoordinate(coordinate)
Expand Down

0 comments on commit b4511f2

Please sign in to comment.