vasturiano / globe.gl

UI component for Globe Data Visualization using ThreeJS/WebGL
https://vasturiano.github.io/globe.gl/example/world-population/
MIT License
1.97k stars 293 forks source link

Ability to change graticules color #130

Open brice-noowu opened 1 year ago

brice-noowu commented 1 year ago

I would love to be able to change graticules color, something like graticulesColor([str]).

Is there any work around to do something like this currently ?

vasturiano commented 1 year ago

@brice-noowu thanks for reaching out.

There isn't at the moment, but we could expose a config property for it, if there's enough demand for it.

For reference here's the short snippet of code that does it: https://github.com/vasturiano/three-globe/blob/6d9f35d64d93a05cb7074d7be8930a15b9775c9c/src/layers/globe.js#L64-L67

As a workaround you could actually include a similar object yourself (with a different color) by accessing the scene directly (via .scene()).