-
Notifications
You must be signed in to change notification settings - Fork 303
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scatter addition based on three #2411
Comments
Hi, |
use : GlobeView js code/* global itowns,document,GuiTools, debug, window */
|
Hi,
The result is the following: I'll close the issue since it should answer your question, don't hesitate to re-open it if needed. |
Environment
Context
I want to add an image point based on the original method of Three.js (the map coordinate system is 4326), but it is not displayed on the map. I would like to ask how to convert the coordinates
Code
const marker = new THREE.Sprite(
new THREE.SpriteMaterial({
map: new THREE.TextureLoader().load('/1.png'), // 替换为你的图片路径
scaleToWIdth: true
})
)
marker.scale.set(100, 100, 100) // 根据需要调整scale大小
marker.position.set(113.249257, 28.408089, 0) // 设置marker点在场景中的位置
scene.add(marker)
The text was updated successfully, but these errors were encountered: