Hi Walter,
We need to bind the goJs Diagram’s background image to a variable and we are doing it like below :
goJsDiagram.add(
$$(go.Part,
{
name: 'BackgroundImage',
layerName: "Background",
position: new go.Point(0, 0),
selectable: false, pickable: false
},
$$(go.Picture, {
height: 600,
width: 900
},
new go.Binding("source", "", function(data){
if(goJsPanel.backgroundImageId)
return `/OneView/services/MapImage?id=${goJsPanel.backgroundImageId}`;
return '';
})
)
));
We are unable to call the above binding with the help of updateAllTargetBindings ( As this works on only node and link template bindings).
Could you help us? Please let us know if you need more information.