keplergl / keplergl/kepler.gl

Colorize geoJson point, Line

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

Description

Hi all,

I have a layer with geoJson Dataset of type point, and a geoJson layer with lines type MultiLineString.

What i want is to simply change the fillcolor of the point and the line color per point or per group.
At the moment the only way to approach this is to have a color pallete and introduce a new property in the geoJson settings **stateValue** and by setting the visualChannels in the layer settings.

for example i want in the properties object to simply add a color value and reflect this when i render the into the map.

`

{
"type": "Feature",
"properties": {
"name": "Name 1",
"stateValue": 0,
"color":"red" // or hex
},
"geometry": {
"type": "Point",
"coordinates": [
x,
y
]
}
}`


`visualChannels: {
colorField: {
name: "stateVal",
type: "integer",
}`

thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing how GeoJSON layer settings and visualChannels are handled for point and MultiLineString layers. Done means a color supplied in each feature's properties can control point fill or line color per feature or group without requiring a palette-based stateValue mapping.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization
Issue type
Feature
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.