I am working on bringing the Layers API into OHIF. I am running into an issue though of not having a way to update the viewport to show the current layers which are associated with the viewport. The viewport always seems to show the last set of layers which was uploaded, rather than the current set.
I am trying to find a way to refresh the viewport so as to show the current layers rather than the ones from one step behind. Is there a function of some sort I can use to rerender the layers? I have tried using the updateImage() function but it does not seem to do anything to update the layers. Thanks for any help you can offer.
Hello,
I am working on bringing the Layers API into OHIF. I am running into an issue though of not having a way to update the viewport to show the current layers which are associated with the viewport. The viewport always seems to show the last set of layers which was uploaded, rather than the current set.
I am trying to find a way to refresh the viewport so as to show the current layers rather than the ones from one step behind. Is there a function of some sort I can use to rerender the layers? I have tried using the updateImage() function but it does not seem to do anything to update the layers. Thanks for any help you can offer.