diff --git a/frontend/react/src/map/map.ts b/frontend/react/src/map/map.ts
index 9fbee7b8..af7ce75d 100644
--- a/frontend/react/src/map/map.ts
+++ b/frontend/react/src/map/map.ts
@@ -1055,7 +1055,13 @@ export class Map extends L.Map {
.getUnitsManager()
.spawnUnits(
this.#spawnRequestTable.category,
- Array(this.#spawnRequestTable.amount).fill(this.#spawnRequestTable.unit),
+ Array(this.#spawnRequestTable.amount).fill(this.#spawnRequestTable.unit).map((unit, index) => {
+ return {
+ ...unit,
+ location: new L.LatLng(unit.location.lat + (this.#spawnRequestTable?.category === "groundunit" ? 0.00025 * index : 0.005 * index), unit.location.lng),
+ heading: this.#spawnHeading,
+ };
+ }),
this.#spawnRequestTable.coalition,
false,
undefined,
diff --git a/frontend/react/src/ui/contextmenus/spawncontextmenu.tsx b/frontend/react/src/ui/contextmenus/spawncontextmenu.tsx
index a710eb7d..078cfa2e 100644
--- a/frontend/react/src/ui/contextmenus/spawncontextmenu.tsx
+++ b/frontend/react/src/ui/contextmenus/spawncontextmenu.tsx
@@ -660,7 +660,13 @@ export function SpawnContextMenu(props: {}) {
.getUnitsManager()
.spawnUnits(
spawnRequestTable.category,
- Array(spawnRequestTable.amount).fill(spawnRequestTable.unit),
+ Array(spawnRequestTable.amount).fill(spawnRequestTable.unit).map((unit, index) => {
+ return {
+ ...unit,
+ location: new LatLng(unit.location.lat + (spawnRequestTable?.category === "groundunit" ? 0.00025 * index : 0.005 * index), unit.location.lng),
+ heading: unit.heading || 0,
+ };
+ }),
spawnRequestTable.coalition,
false
);
diff --git a/frontend/react/src/ui/modals/importexportmodal.tsx b/frontend/react/src/ui/modals/importexportmodal.tsx
index f600dcce..141d026d 100644
--- a/frontend/react/src/ui/modals/importexportmodal.tsx
+++ b/frontend/react/src/ui/modals/importexportmodal.tsx
@@ -319,7 +319,7 @@ export function ImportExportModal(props: { open: boolean }) {
if (selectionFilter[coalition][markerCategory] !== true) continue;
let unitsToSpawn = groupData.map((unitData: UnitData) => {
- return { unitType: unitData.name, location: unitData.position, liveryID: "", skill: "High" };
+ return { unitType: unitData.name, location: unitData.position, liveryID: "", skill: "High", heading: unitData.heading || 0 };
});
getApp().getUnitsManager().spawnUnits(category.toLocaleLowerCase(), unitsToSpawn, coalition, false);
diff --git a/frontend/react/src/ui/panels/unitspawnmenu.tsx b/frontend/react/src/ui/panels/unitspawnmenu.tsx
index ec9b8ba1..674f1454 100644
--- a/frontend/react/src/ui/panels/unitspawnmenu.tsx
+++ b/frontend/react/src/ui/panels/unitspawnmenu.tsx
@@ -451,10 +451,9 @@ export function UnitSpawnMenu(props: {
`}
>
{props.blueprint?.liveries && props.blueprint?.liveries[id].countries.length == 1 && (
-
+
)}