keplergl / keplergl/kepler.gl

Issues with injecting custom MapPopover

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

Description

Hi,

I am trying to modify the default tooltip of kepler.gl, came across [this](https://github.com/keplergl/kepler.gl/issues/616) issue.

Along the lines of [custom map-control](https://github.com/keplergl/kepler.gl/blob/master/examples/demo-app/src/factories/map-control.js) implementation, I tried implementing the same for `MapPopoverFactory`.

I encountered some errors attached here
[error.txt](https://github.com/keplergl/kepler.gl/files/4185427/error.txt)

Since I'm working with master branch of kepler.gl, I could dig a little deeper to find that [`layerInfoProp` isn't being rendered](https://github.com/keplergl/kepler.gl/blob/master/src/components/map/map-popover.js#L177), and substituting it with a `

some text

` tag works.

In the same file, [line 82](https://github.com/keplergl/kepler.gl/blob/master/src/components/map/map-popover.js#L82). Does this have something to do with the default parameters of the factory?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with examples/demo-app/src/factories/map-control.js and src/components/map/map-popover.js, especially the MapPopoverFactory usage near line 82 and layerInfoProp near line 177. Reproduce the reported custom MapPopover errors from error.txt, then determine why layerInfoProp is not rendered and verify the corrected injection behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.