This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Description
Hello, i have a problem with icon url for sprites.
I have different icons for each sprite, the images are png 512x512px and they are passed as base64 encoded string images.
This is my code:
`
let viewableData = new Autodesk.DataVisualization.Core.ViewableData({
atlasWidth: 512,
atlasHeight: 512
});
viewableData.spriteSize = 36;
for(var i = 0; i < this.sensors.length;i++){
let sensor = this.sensors[i];
const style = new Autodesk.DataVisualization.Core.ViewableStyle(Autodesk.DataVisualization.Core.ViewableType.SPRITE, new THREE.Color(0xffffff), sensor.img);
const viewable = new Autodesk.DataVisualization.Core.SpriteViewable(new THREE.Vector3(sensor.x,sensor.y,sensor.z), style, sensor.dbId);
viewableData.addViewable(viewable);
}
viewableData.finish()
.then(()=>{
this.dataVizExtn.addViewables(viewableData);
},error =>{
console.log(error)
});`
I have 7 sensors and there is a problem with the last sensor because all the previous sprites show the wrong image (they show the latest sensor icon).
How this can be possible?
Other info:
Angular 11 app
wrapper: "ng2-adsk-forge-viewer": "^1.4.0"
Thank you.
