Skip to content

Commit

Permalink
fix: borderbox shows
Browse files Browse the repository at this point in the history
  • Loading branch information
wikipop authored Oct 12, 2024
1 parent 7037787 commit bd41244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/pages/panel/select_scene.client.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ function logPolygon(polygon: Polygon) {
const coordinates = polygon.polygon.coordinates;
const new_polygon = [];
for (let i = 0; i < coordinates.length; i++) {
new_polygon.push(new LatLng(coordinates[i].lat, coordinates[i].lon));
new_polygon.push(new LatLng(coordinates[i].latitude, coordinates[i].longitude));
}
selectedPolygon.value = new_polygon;
console.log(selectedPolygon.value);
Expand All @@ -163,7 +163,7 @@ async function showPolygon(polygon: Polygon) {
url = url.replace("%7By%7D", "{y}");
tileLayer.value = {
url,
bounds: polygon.polygon.coordinates.map(({ lat, lon }) => [lat, lon] as [number, number])
bounds: polygon.polygon.coordinates.map(({ latitude, longitude }) => [latitude, longitude] as [number, number])
};
console.log(url);
}
Expand Down

0 comments on commit bd41244

Please sign in to comment.