Colorize geoJson point, Line
- 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