jscastro76 / threebox

A Three.js plugin for Mapbox GL JS, with support for animations and advanced 3D rendering.
Other
553 stars 146 forks source link

How to add CSS3D #322

Closed zhiqunDLUT closed 2 years ago

zhiqunDLUT commented 2 years ago

these is some panel put in css3D with three.js how to add it in mapbox? thank you

jscastro76 commented 2 years ago

This would be more a question for StackOverflow than Threebox. You have support for CSS2D in Threebox, it's used heavily on Labels and Pop-ups. CSS3D is not included, I never tried or found the need to implement it. If you can explain your need I'd understand better what you need.

However, while ago before including in CSS2D in Threebox, I developed an example just using CSS2D adding the feature request for Mapbox. As CSS3D implementation pattern is quite to CSS2D, you can surely follow this example to create a CSS3D instead. You have to paste your token in the fiddle first line.

image