Image marker get anchor.id

i am using Three.js and using the example,
i Want to create 12 marker,
using for loop, to create those

imageTracker.onNewAnchor.bind(anchor => {
    console.log("New anchor has appeared:", anchor.id);

however it always return anchor.id = 0,

but if i dont use for loop, and hardcoded, it can show id 1,2,3 so on,
Do you think what happen?

Hi @zapw,

I’m not 100% sure I understand what you’re trying to do here, if possible could you let us know some more information and the use case? We might be able to point you in the right direction.

George

1 Like