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

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Wayfinder Widget Colors

AlexK
14-Alexandrite

Wayfinder Widget Colors

Hi Community

Is there a way to change the color of the reticle and the circle of the Wayfinder widget?

AlexK_0-1691395206963.png

Thanks for your help!

 

Best wishes

Alex

1 ACCEPTED SOLUTION

Accepted Solutions

Alex,

 

Sorry that was a rather a quick answer  and probably  you already knew that!

Currently I don't see any way to do what you want .

 

Alternatively you could maybe turn off the reticule and add/move a billboard image at the end point - which again you may have thought of

 

$scope.addImageIndicator = function () {

let data = $scope.getWidgetProp("wayfinder-1", "waypointsData" );

positionImage( "3DImage-Indicator", data[0].position.x, data[0].position.y, data[0].position.z );
}

 

positionImage = function (image , x,y,z) {

$scope.view.wdg[image].x = x;
$scope.view.wdg[image].y = y;
$scope.view.wdg[image].z = z;



}

View solution in original post

4 REPLIES 4

sgreywilson_0-1691421023710.png

 

AlexK
14-Alexandrite
(To:sgreywilson)

Hi Steve

 

Thanks for your reply. I want to change the white color of the reticle and the circle, not the ribbon.

 

Best wishes

 

Alex

Alex,

 

Sorry that was a rather a quick answer  and probably  you already knew that!

Currently I don't see any way to do what you want .

 

Alternatively you could maybe turn off the reticule and add/move a billboard image at the end point - which again you may have thought of

 

$scope.addImageIndicator = function () {

let data = $scope.getWidgetProp("wayfinder-1", "waypointsData" );

positionImage( "3DImage-Indicator", data[0].position.x, data[0].position.y, data[0].position.z );
}

 

positionImage = function (image , x,y,z) {

$scope.view.wdg[image].x = x;
$scope.view.wdg[image].y = y;
$scope.view.wdg[image].z = z;



}

AlexK
14-Alexandrite
(To:sgreywilson)

Hi Steve

 

Thanks, that's a clever solution! I will try it out. 

 

Best wishes

 

Alex

Update: I've edited the code, so it updates the position by the viewfinder index

 

$scope.$on("$ionicView.afterEnter", function (event) {
$scope.addImageIndicator()
});

// Add this function "addImageIndicator()" to the next step button
$scope.addImageIndicator = function () {
$timeout(function() {

let data = $scope.getWidgetProp("wayfinder-1", "waypointsData" );
let index = $scope.getWidgetProp("wayfinder-1", "selectedWaypointIndex" );

positionImage( "3DImage-Indicator", data[index].position.x, data[index].position.y, data[index].position.z ); // Name the 3D image "3DImage-Indicator"
console.log(data[index].position.x, data[index].position.y, data[index].position.z);
}, 200);
}

positionImage = function (image , x,y,z) {

$scope.view.wdg[image].x = x;
$scope.view.wdg[image].y = y;
$scope.view.wdg[image].z = z;

 


}

 

Top Tags