I am a newbie in wikitude, But I have almost completed my first app. I have one query. I have shown the distance of the POI from the user, in the HTML panel that slides in from the right. However, What I want is to have the distance to the POI shown in the marker on the camera screen itself. I know that this is possible. But I am facing some difficult. This is from where i create the markers.
However, I need to have the distanceLabel property here. From where can I access it?
I update the distance to user values like this.
updateDistanceToUserValues: function updateDistanceToUserValuesFn() { for (var i = 0; i < World.markerList.length; i++) { World.markerList.distanceToUser = World.markerList.markerObject.locations.distanceToUser(); } },
But I cannot get the distance property to the marker.js file at the time the marker is created. Any way to do that?
Thanks in advance,
H
Hardik DG
said
almost 6 years ago
Did you get any solution for this?
Wikitude Support
said
almost 6 years ago
Hello Hardik,
Are you also trying to display the distance on the marker? Then please, review the following forum posts:
Ashif Shereef