This commit is contained in:
Andras Schmelczer 2026-02-10 22:21:15 +00:00
parent 1f68ca0512
commit 3599803589
43 changed files with 3578 additions and 262 deletions

View file

@ -13,6 +13,7 @@ export default function MapLegend({
enumValues,
theme = 'light',
inline = false,
suffix,
}: {
featureLabel: string;
range: [number, number];
@ -22,6 +23,7 @@ export default function MapLegend({
enumValues?: string[];
theme?: 'light' | 'dark';
inline?: boolean;
suffix?: string;
}) {
const densityGradient = theme === 'dark' ? DENSITY_GRADIENT_DARK : DENSITY_GRADIENT;
const gradientStyle =
@ -61,8 +63,8 @@ export default function MapLegend({
</>
) : (
<>
<TickerValue text={formatValue(range[0])} />
<TickerValue text={formatValue(range[1])} />
<TickerValue text={formatValue(range[0]) + (suffix || '')} />
<TickerValue text={formatValue(range[1]) + (suffix || '')} />
</>
)}
</div>