Skip to content

Commit

Permalink
Show legend conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
kelvinkipruto committed Aug 23, 2024
1 parent 7d23fbb commit 704e9a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/hurumap-next/src/Map/LazyMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const LazyMap = React.forwardRef(function LazyMap(props, ref) {
<TileLayer url={url} />
</Pane>
))}
<Legend legend={legend} />
{mapType === "choropleth" && <Legend legend={legend} />}
<ZoomControl position="bottomright" />
<Layers
{...LayersProps}
Expand Down

0 comments on commit 704e9a3

Please sign in to comment.