-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Description
Description
Description
When using @deck.gl/arcgis
v9.0.40, IconLayer
click and hover handlers don't work for Windows users who are using Chrome. We are seeing this same bad behavior in the PolygonLayer
as well for Chrome users on Windows.
I've created a Code Sandbox example where I use javascript to render an icon to the Esri map using an IconLayer. Hovering and clicking the icon will produce console logging messages for users on a Mac, but there will be no logs for Windows users who hover or click the icon on Chrome. Hover and Click handlers will however work for Windows Users on Firefox.
❌ This sandbox reproduces the problem. Mac users' hover and click events will fire regardless of browser but will not for Windows users on Chrome.
🔗 Broken Example (v9.0.40)
Upgrading to deck.gl/arcgis
v9.1.x is unfortunately not an option since layers don't render to the map as mentioned in this bug report
Flavors
- Script tag
- React
- Python/Jupyter notebook
- MapboxOverlay
- GoogleMapsOverlay
- CARTO
- ArcGIS
Expected Behavior
As a Windows user using Chrome, I expect hover and click events for IconLayer and PolygonLayer to fire.
Actual Behavior: Hover and Click events for elements within the IconLayer and PolygonLayer do not fire. If I switch to FireFox or switch to a Mac, hover and click events will fire as expected.
Steps to Reproduce
Observe the Bug
- Open this Code Sandbox using Chrome on a Windows machine: https://codesandbox.io/p/devbox/laughing-cray-k2fgr3
- Observe an icon on an Esri map.
- Open the developer tools to get access to the dev console
- Hover and click the icon on the map.
- Result: no logs will be printed to the console as the hover and click events will not fire
Prove that this works on a Mac:
- Open this Code Sandbox on any browser on a Mac (or use FireFox on Windows): https://codesandbox.io/p/devbox/laughing-cray-k2fgr3
- Observe an icon on an Esri map.
- Open the developer tools to get access to the dev console
- Hover and click the icon on the map.
- Result: you will see hover and click logs being printed to the console because these events are working properly

Environment
- Framework version: deck.gl/[email protected]
- Browser: Chrome
- OS: Windows 11
Logs
No response