keplergl / keplergl/kepler.gl

[Bug]: Right click to view options on polygon no longer works - polygon pans instead

Open
#2,950 2 comments 0 reactions 1 assignee Claimed by @lixun910 View on GitHub
bug jupyter
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**
Right click to view options on polygon no longer works

**To Reproduce**
1. create a new python virtualenvironment
```bash
python3.12 -m venv venv_new
source venv_new/bin/activate
```
2. install latest kepler-gl (0.3.6) within the created environment
```bash
pip install keplergl # triggers `Downloading keplergl-0.3.6.tar.gz , ...`
```
3. Create a new jupyter notebook, and select `venv_new` as its kernel
4. Create an empty Kepler map within the jupyter notebook **on vscode**
```python
from keplergl import KeplerGl

kmap = KeplerGl()
kmap
```
5. use the draw on map tool to create any polygon or rectangle on the map
6. hover over the rectangle to trigger the pop up menu suggesting "Right click to view options".
7. Right click as suggested

**Expected behavior**
The options menu would not open. Instead the polygon/rectangle enter pans mode, as if the left button on the mouse was clicked instead.
- The menu fails to open only in the map integrated into VSCode.
- The menu opens correctly when right clicking on the jupyter notebook opened on the browser.

Raising the issue here as I am not sure if the culprit is latest VSCode version, or it has to do with KeplerGl, or both.

**The menu to copy the geometry opens correctly if the Notebook is opened on the browser**
Image

**The menu to copy the geometry does not open when embedded in a Jupyter notebook in VSCode**
Image

**Desktop (please complete the following information):**
- OS: iOS 15.1.1
- Browser: None
- IDE: VSCode Version: 1.96.3

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.