Skip to content

Commit

Permalink
feat: works (#115)
Browse files Browse the repository at this point in the history
  • Loading branch information
wikipop authored Oct 6, 2024
1 parent 8f2d44a commit 2d08bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions frontend/pages/panel/select_scene.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
</template>

<script setup lang="ts">
import L, { LatLng } from "leaflet";
import type L from "leaflet";
import { LatLng } from "leaflet";
import type { DateValue } from "@internationalized/date";
const marker = ref<LatLng | undefined>(undefined);
Expand All @@ -46,7 +47,6 @@ const dateTo = ref<DateValue | null>(null); // Parent holds the selected date
const maxCloudCover = ref<string>("20");
const error = ref<string | undefined>(undefined);
const map = ref<any | undefined>(undefined);
interface Polygon {
id: string
Expand Down Expand Up @@ -106,9 +106,9 @@ function logPolygon(polygon: Polygon) {
async function showPolygon(polygon: Polygon) {
const sceneId = polygon.id;
L.map("map").setView([polygon.polygon.coordinates[0].lat, polygon.polygon.coordinates[0].lon], 6);
// L.map("map").setView([polygon.polygon.coordinates[0].lat, polygon.polygon.coordinates[0].lon], 6);
map.value.curentPosition = [polygon.polygon.coordinates[0].lat, polygon.polygon.coordinates[0].lon];
// map.value.curentPosition = [polygon.polygon.coordinates[0].lat, polygon.polygon.coordinates[0].lon];
// marker.value
Expand Down

0 comments on commit 2d08bfa

Please sign in to comment.