Add support for nautical units to the embedding view and embedding playground.

This commit is contained in:
bdbkun 2024-08-21 22:42:30 +00:00
parent 301b45e31c
commit 91fa50b22c
2 changed files with 5 additions and 1 deletions

View file

@ -18,7 +18,7 @@ export type EmbeddingOptions = {
}, },
distanceMarkers: boolean, distanceMarkers: boolean,
directionMarkers: boolean, directionMarkers: boolean,
distanceUnits: 'metric' | 'imperial', distanceUnits: 'metric' | 'imperial' | 'nautical',
velocityUnits: 'speed' | 'pace', velocityUnits: 'speed' | 'pace',
temperatureUnits: 'celsius' | 'fahrenheit', temperatureUnits: 'celsius' | 'fahrenheit',
theme: 'system' | 'light' | 'dark', theme: 'system' | 'light' | 'dark',

View file

@ -221,6 +221,10 @@
<RadioGroup.Item value="imperial" id="imperial" /> <RadioGroup.Item value="imperial" id="imperial" />
<Label for="imperial">{$_('menu.imperial')}</Label> <Label for="imperial">{$_('menu.imperial')}</Label>
</div> </div>
<div class="flex items-center space-x-2">
<RadioGroup.Item value="nautical" id="nautical" />
<Label for="nautical">{$_('menu.nautical')}</Label>
</div>
</RadioGroup.Root> </RadioGroup.Root>
</Label> </Label>
<Label class="flex flex-col items-start gap-2"> <Label class="flex flex-col items-start gap-2">