Start a new topic

How to scale POIs according to their distance to the user

How to scale POIs according to their distance to the user


Please check out AR.context.scene attributes in documentation. Max- and MinScalingDistance and scalingFactor are described there and help you customizing the scaling behaiour.

Best regards,
Andreas

I am trying to scale POIs according to their distance to the user. I want the POIs that are close to the user to be visible bigger than the ones that are far away from the user. I searched in forum and documantation and I found below parameter that I think should be changed.

AR.context.scene.scalingFactor

In the nativedetailscreen.js file I am trying to set this parameter value to for ex. 0.3 inside the loadPoisFromJsonData function. But I saw that AR.context.scene does not have a parameter called scalingFactor.

How can I change this value and in which part of the code I should change it? Thanks.
Login or Signup to post a comment