'How to display distance in AR.JS

https://m.youtube.com/watch?v=biCKHVefIe8 How to show distance in location based ar.js in JavaScript like this? I build a-image and I want to show something like this,distance in A-text, title and other aframe object like a-image. I tried to implement child element on image with A-text but they don't show me distance.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source