By default, the content of all Markers, Popups etc inside Map capture mouse events, making it hard to drag/zoom the map. That behaviour can be reversed with renderChildrenInPortal prop. However, that removes the ability to have some components capture mouse events.
I think that very popular use case is to want to have Markers pass through mouse events, but Popups capture them. That is not possible now as far as I know.
My suggestion is to add a new prop to components inside the Map, maybe captureEvents, captureMouseEvents... to control this behaviour, when renderChildrenInPortal is set.
By default, the content of all Markers, Popups etc inside Map capture mouse events, making it hard to drag/zoom the map. That behaviour can be reversed with
renderChildrenInPortal
prop. However, that removes the ability to have some components capture mouse events.I think that very popular use case is to want to have Markers pass through mouse events, but Popups capture them. That is not possible now as far as I know.
My suggestion is to add a new prop to components inside the Map, maybe
captureEvents
,captureMouseEvents
... to control this behaviour, whenrenderChildrenInPortal
is set.