This example builds on top of the HelloWorldExample, so please consult that first for any
questions regarding basic setup of the map.
This example shows how to add a THREE.js object to the scene.
For the purposes of the demo, create a simple pink box.
Next we need to find the position to place the cube, we use the helpful method
getGeoCoordinatesAt to get the geo space position under the mouse when it is clicked, this
is shown here:
Here the object is created and added to the mapAnchors node of the MapView scene.
Finally, in order to see the cube rendered on the map, we need to force an update.
This example builds on top of the HelloWorldExample, so please consult that first for any questions regarding basic setup of the map.
This example shows how to add a THREE.js object to the scene.
For the purposes of the demo, create a simple pink box.
Next we need to find the position to place the cube, we use the helpful method getGeoCoordinatesAt to get the geo space position under the mouse when it is clicked, this is shown here:
Here the object is created and added to the mapAnchors node of the MapView scene.
Finally, in order to see the cube rendered on the map, we need to force an update.