Image marker get anchor.id


#1

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?


#2

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