Hi @IB_10645210 ,
let suppose that you have one wayfinder Widget e.g. wayfinder1- with 16 waypoint items . The follow JavaScript code will set the position to a grid 4 X 4 = 16
//------------------------------------------------------------
$scope.Test=function(){
var wdgs=$scope.app.view.Home.wdg;
for(wdg in wdgs)
{
if(hasWdgProp(wdgs[wdg],'selectedWaypointIndex')) //only wayfinder widget has this property
{ let count=0;
let arr_size= wdgs[wdg].waypointsData.length
for (i=0; i<arr_size; i++) {
//4 grids
a1=i % 4
a2= (i -a1) /4
wdgs[wdg].waypointsData[i].position.x=-0.5+0.25*a1
wdgs[wdg].waypointsData[i].position.y=0.1+0.25*a2
wdgs[wdg].waypointsData[i].position.z=0
$scope.$applyAsync();}
}
$scope.$applyAsync();
}
};
//======================================================================
where z=0
x is starting with 0.5, 0.75,1.0,1.25
and y respectively 0.1, 0.35, 6 , 8.25