Skip to main content
15-Moonstone
May 2, 2022
Solved

multiple thingmark/qr codes same experience

  • May 2, 2022
  • 1 reply
  • 1891 views

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?

Best answer by sebben

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.

1 reply

14-Alexandrite
May 2, 2022

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.

GianVal15-MoonstoneAuthor
15-Moonstone
May 3, 2022

Sorry, can you better explain the method? 

sebben14-AlexandriteAnswer
14-Alexandrite
May 3, 2022

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.