Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
Hello, I would like to create an experience able to contain multiple thingmarks at the same time (or to make a succession of different experiences as seamlessly as possible). Let me explain: during the navigation, I would like that, by pointing to a thingmark, some information would come out; if I point to another thingmark, different information and so on.
it's possible?
Solved! Go to Solution.
You just write something like this:
$scope.$on("trackingacquired",function (evt, data){
if(data =="38861:1"){
$scope.view.wdg["label-1"].text= "Information A"
}
else if(data =="38861:2"){
$scope.view.wdg["label-1"].text= "Information B"
}
}
);
Change the ID to your thingmark IDs and you should see "Information A or B " in the label von you point to different thingmarks. Note that you need a thingmark target in your experience.
Hi,
yes you can use this:
$scope.$on("trackingacquired",function (evt, data){});
The 'data' will contain the thingmark ID which when you point to different thingmarks. You can use it to show different information.
Sorry, can you better explain the method?
You just write something like this:
$scope.$on("trackingacquired",function (evt, data){
if(data =="38861:1"){
$scope.view.wdg["label-1"].text= "Information A"
}
else if(data =="38861:2"){
$scope.view.wdg["label-1"].text= "Information B"
}
}
);
Change the ID to your thingmark IDs and you should see "Information A or B " in the label von you point to different thingmarks. Note that you need a thingmark target in your experience.
I set up a simple exp with thingmark without associating any. when the target is acquired the label does not change its text.
what am I missing?
It works for me... Did you change the thingmark IDs?
You could share your smaple experience and I can take a look.