cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

multiple thingmark/qr codes same experience

GianVal
15-Moonstone

multiple thingmark/qr codes same experience

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?

ACCEPTED SOLUTION

Accepted Solutions
sebben
14-Alexandrite
(To:GianVal)

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.

View solution in original post

5 REPLIES 5
sebben
14-Alexandrite
(To:GianVal)

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.

GianVal
15-Moonstone
(To:sebben)

Sorry, can you better explain the method? 

sebben
14-Alexandrite
(To:GianVal)

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.

GianVal
15-Moonstone
(To:sebben)

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?

sebben
14-Alexandrite
(To:GianVal)

It works for me... Did you change the thingmark IDs?

You could share your smaple experience and I can take a look.

Announcements

Top Tags