Skip to content

Commit

Permalink
Fix mismatch for legend parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
richterb committed Aug 4, 2022
1 parent 9b75371 commit a460903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/visualizations/src/components/Map/Choropleth.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import turfBbox from '@turf/bbox';
import type { SourceSpecification } from 'maplibre-gl';
// eslint-disable-next-line import/no-unresolved
import type { BBox } from 'geojson';
import type { BBox, FeatureCollection } from 'geojson';
import type { ColorsScale, DataBounds, Color } from '../types';
import MapRender from './MapRender.svelte';
import { BLANK } from './mapStyles';
Expand Down Expand Up @@ -74,7 +74,7 @@
if (newShapes.type === 'geojson') {
const computeColors = colorShapes(
newShapes.geoJson,
newShapes.geoJson as FeatureCollection,
values,
newColorScale,
emptyValueColor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
export let dataBounds: DataBounds;
export let colorsScale: ColorsScale;
export let variant: LegendVariant;
export let title: string;
export let title: string | undefined;
// the part below is related to labels rotation
let legendWidth: number;
Expand Down

0 comments on commit a460903

Please sign in to comment.