keplergl / keplergl/kepler.gl

How to add different data to mutiple maps in one page [Bug]

Open
#1,127 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
12k
Forks
2k
Avg merge
1d 5h
Merged PRs (30d)
66

Description

**Describe the bug**
I have two maps in the page. I want to set them in different config use 'addDataToMap', but not work. They are in same config.

**To Reproduce**
Steps to reproduce the behavior:

![image](https://user-images.githubusercontent.com/10557315/83117901-3e914080-a100-11ea-8bf5-3ad971b816bd.png)

Like this picture.
1. I set two configs one in Canada and another in France, save them.
2. Reload page and set configs data into these maps again, use addDataToMap.
3. As you see, two maps all in France now.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: ubuntu
- Browser chrome
- Version 81.0.4044.92

**Additional context**
Can I use mutiple maps in different config (or datasets) in one page?

Contributor guide

No contributing guide indexed for this repository

Research direction

No file or test is named. Start by reproducing the two-map case in Chrome with separate Canada and France configs, then trace how addDataToMap applies configuration to each map. Done means each map retains its own dataset or configuration after reload; add regression coverage if the relevant test location is found.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.