Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/RMap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ export interface RMapProps extends PropsWithChildren<unknown> {
minZoom?: number;
/** Maximum zoom level */
maxZoom?: number;
/** Sets the tabIndex of the map, if set the map will need to be focused for mouse zoom to work */
tabIndex?: number;
/**
* Allow rotation of the map.
* Cannot be updated once the map is created.
Expand Down Expand Up @@ -188,6 +190,7 @@ export default class RMap extends RlayersBase<RMapProps, Record<string, never>>
className={this.props.className}
style={{width: this.props.width, height: this.props.height}}
ref={this.target}
tabIndex={this.props.tabIndex}
>
<RContext.Provider value={{map: this.ol, rMap: this}}>
{this.props.children}
Expand Down