If so is there an example on how to do this in html?
Best regards,
Martijn
W
Wolfgang Damm
said
almost 10 years ago
You have the possibility to change the location of a GeoObject after it has been created by changing its GeoLocation.
e.g.
var loc = new AR.GeoLocation(...); var obj = new AR.GeoObject(loc, {...});
// change the location of obj loc.longitude = 12.34; loc.latitude = 56.78;
Addtionally if you want a smooth transition of the object from one location to the other you can create a property animation on its longitude, latitude or altitude property.
e.g.
new AR.PropertyAnimation(loc, "longitude", startLongitude, endLongitude, 1000);
see the API Reference for more options on animation, e.g. group multiple animation by using a parallel AR.AnimationGroup.
There are examples for animations in the SDK Examples have a look at "Point Of Interest - Selecting Pois".
NN