Drones to AGL #9
@@ -62,8 +62,8 @@ const frzGeoJsonEndpoint = `${pprApiBase}/drone-requests/frz`;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="drone-field">
|
<div class="drone-field">
|
||||||
<label for="max-elevation">Maximum Elevation, feet AMSL <span aria-hidden="true">*</span></label>
|
<label for="max-elevation">Max height above ground in feet <span aria-hidden="true">*</span></label>
|
||||||
<input type="number" id="max-elevation" name="maximum_elevation_ft_amsl" min="0" step="1" inputmode="numeric" required />
|
<input type="number" id="max-elevation" name="maximum_elevation_ft_agl" min="0" step="1" inputmode="numeric" required />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="drone-field drone-full">
|
<div class="drone-field drone-full">
|
||||||
@@ -407,7 +407,7 @@ const frzGeoJsonEndpoint = `${pprApiBase}/drone-requests/frz`;
|
|||||||
if (!fieldValue) return;
|
if (!fieldValue) return;
|
||||||
const normalizedValue = key === 'operator_id' || key === 'flyer_id' ? fieldValue.toUpperCase() : fieldValue;
|
const normalizedValue = key === 'operator_id' || key === 'flyer_id' ? fieldValue.toUpperCase() : fieldValue;
|
||||||
|
|
||||||
if (key === 'maximum_elevation_ft_amsl') {
|
if (key === 'maximum_elevation_ft_agl') {
|
||||||
data[key] = Number.parseInt(normalizedValue, 10);
|
data[key] = Number.parseInt(normalizedValue, 10);
|
||||||
} else if (key === 'location_latitude' || key === 'location_longitude') {
|
} else if (key === 'location_latitude' || key === 'location_longitude') {
|
||||||
data[key] = Number.parseFloat(normalizedValue);
|
data[key] = Number.parseFloat(normalizedValue);
|
||||||
|
|||||||
Reference in New Issue
Block a user