You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to interact with the ZoomWidget and CompassWidget components when used alongside a react-map-gl basemap with the reverse-controlled method.
The widgets render but are effectively inert because they are "below" the div rendering the basemap. I can get them to work using the browser dev tools by either:
Setting a negative z-index on the basemap div
Setting a high positive z-index on the div that wraps the widgets
Moving the widgets div to come after the basemap div in the DOM
I tried setting z-indexes on the basemap or the widgets using their respective style properties but that doesn't seem to work because those styles are applied too deep in the tree.
Flavors
Script tag
React
Python/Jupyter notebook
MapboxOverlay
GoogleMapsOverlay
CartoLayer
ArcGIS
Expected Behavior
I can use the widgets module alongside my basemap rendering method and am able to interact with the widgets as expected.
Description
I am unable to interact with the
ZoomWidget
andCompassWidget
components when used alongside areact-map-gl
basemap with the reverse-controlled method.The widgets render but are effectively inert because they are "below" the div rendering the basemap. I can get them to work using the browser dev tools by either:
I tried setting z-indexes on the basemap or the widgets using their respective
style
properties but that doesn't seem to work because those styles are applied too deep in the tree.Flavors
Expected Behavior
I can use the widgets module alongside my basemap rendering method and am able to interact with the widgets as expected.
Steps to Reproduce
Here is a link to a branch of a repo that can be used to reproduce this issue: https://github.com/TylerMatteo/react-deck-boilerplate/tree/widget-bug-repro
To reproduce:
widget-bug-repro
branchnpm install
npm run dev
Environment
Logs
N/A
The text was updated successfully, but these errors were encountered: