Skip to content

Commit

Permalink
restore tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinElms committed Feb 5, 2025
1 parent 424f104 commit ceaacc3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion oceannavigator/frontend/src/components/map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -486,13 +486,14 @@ const Map = forwardRef((props, ref) => {
if (selected.length > 0) {
if (selected[0].get("class") === "observation") {
type = selected[0].getGeometry().constructor.name;
type = type === "LineString" ? "track" : type;
id = selected[0].get("id");
observation = true;
} else {
type = selected[0].get("type");
}
if (type === "class4") {
id = selected[0].get("id").replace("/", "_");;
id = selected[0].get("id").replace("/", "_");
}
coordinates = selected.map((feature) =>
feature.getGeometry().getCoordinates()
Expand Down

0 comments on commit ceaacc3

Please sign in to comment.