mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix(coordinates): MGRS are now separed properly
This commit is contained in:
parent
b600b2503b
commit
fbc598e3aa
@ -29,7 +29,7 @@ export function OlLocation(props: { location: LatLng; className?: string; refere
|
||||
>
|
||||
MGRS
|
||||
</span>
|
||||
{MGRS ? MGRS.string : "Error"}
|
||||
{MGRS ? MGRS.groups.join(" ") : "Error"}
|
||||
</div>
|
||||
);
|
||||
} else if (referenceSystem === "LatLngDec") {
|
||||
|
||||
@ -46,7 +46,7 @@ export function CoordinatesPanel(props: {}) {
|
||||
returnString = `${latlng.lat >= 0 ? "N" : "S"} ${DDToDDM(latlng.lat)}, ${latlng.lng >= 0 ? "E" : "W"} ${DDToDDM(latlng.lng)}`;
|
||||
break;
|
||||
case "MGRS":
|
||||
returnString = latLngToMGRS(latlng.lat, latlng.lng, 6)?.string || "Error";
|
||||
returnString = latLngToMGRS(latlng.lat, latlng.lng, 6)?.groups.join(" ") || "Error";
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user