Skip to content

Commit

Permalink
feat: add stopEvent property to ROverlay
Browse files Browse the repository at this point in the history
  • Loading branch information
U29 committed Oct 23, 2024
1 parent 610cca6 commit 37e6a49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/ROverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ export interface ROverlayProps extends PropsWithChildren<unknown> {
autoPosition?: boolean;
/** Called immediately on click */
onClick?: (event: MouseEvent<HTMLDivElement>) => void;
/** Stop event propagation */
stopEvent?: boolean;
}

/**
Expand All @@ -62,7 +64,8 @@ export class ROverlayBase<P extends ROverlayProps> extends RlayersBase<P, Record
this.ol = new Overlay({
autoPan: props.autoPan,
offset: props.offset,
positioning: props.positioning
positioning: props.positioning,
stopEvent: props.stopEvent
});
this.containerRef = React.createRef();
}
Expand Down

0 comments on commit 37e6a49

Please sign in to comment.