-
Hello, I contact you to know if there is a way to change the color of the pole? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
There's not option to change pole color. We'll add in next release . const poleColor = 0xff0000;
var poleColorLayer = new itowns.GeometryLayer('color pole', new itowns.THREE.Group(), {
update: (context, layer, node) => {
if (node.visible) {
node.material.diffuse.set(poleColor);
}
},
convert: () => {},
source: false,
zoom: { min: 1 },
});
view.addLayer(poleColorLayer); |
Beta Was this translation helpful? Give feedback.
-
thank you !! it works perfectly |
Beta Was this translation helpful? Give feedback.
-
Sorry, i forget there's this const view = new itowns.GlobeView(viewerDiv, placement, {
diffuse: new itowns.THREE.Color(0xff0000)
}); |
Beta Was this translation helpful? Give feedback.
-
i add a documentation #1632 |
Beta Was this translation helpful? Give feedback.
Sorry, i forget there's this
diffuse
option