Skip to content

Commit

Permalink
map: make default keyboard pan and zoom interactions working
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Dec 6, 2023
1 parent 2340ebb commit 5259a08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/map/MapComponent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default function ({ map }: MapComponentProps) {
useEffect(() => {
map.setTarget(mapElement.current!)
}, [map])
return <div ref={mapElement} className={styles.mapContainer} />
return <div ref={mapElement} tabIndex={0} className={styles.mapContainer} />
}

export function onCurrentLocationSelected(
Expand Down

0 comments on commit 5259a08

Please sign in to comment.