Skip to content

Commit

Permalink
Use proper tmZone for ditio checklist markers (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
nd-novorender authored Feb 5, 2025
1 parent 1ba3c63 commit df0fe84
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/features/ditio/hooks/useDitioChecklistMarkers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ import { useMemo } from "react";

import { useAppSelector } from "app/redux-store-interactions";
import { selectIsTopDown } from "features/orthoCam";
import { CameraType, selectCameraType, selectProjectSettings } from "features/render";
import { CameraType, selectCameraType } from "features/render";
import { latLon2Tm } from "features/render/utils";
import { selectTmZoneForCalc } from "slices/explorer";
import { AsyncStatus } from "types/misc";

import { useGetChecklistItemsQuery, useGetChecklistsQuery } from "../api";
Expand All @@ -23,7 +24,7 @@ const empty = [] as (Checklist & { position: vec3 })[];
export function useDitioChecklistMarkers() {
const filters = useAppSelector(selectFilters);
const projects = useAppSelector(selectDitioProjects);
const { tmZone } = useAppSelector(selectProjectSettings);
const tmZone = useAppSelector(selectTmZoneForCalc);
const showMarkers = useAppSelector(selectShowDitioChecklistMarkers);
const cameraType = useAppSelector(selectCameraType);
const token = useAppSelector(selectDitioAccessToken);
Expand Down

0 comments on commit df0fe84

Please sign in to comment.