Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Nov 25, 2024
1 parent 1a8ac96 commit 16d9713
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function App() {

map = new maplibregl.Map({
container: "map",
style: getStyle(selectedIndex()),
style: getStyle(selectedIndex(),showLabels()),
});
});

Expand All @@ -88,8 +88,9 @@ function App() {
setSelectedIndex(i);
}

const handleShowLabelsChange = (event) => {
setShowLabels(event.target.checked);
const handleShowLabelsChange = (event: Event) => {
const target = event.target as HTMLInputElement;
setShowLabels(target.checked);
};

console.log(showLabels());
Expand Down

0 comments on commit 16d9713

Please sign in to comment.