AnsweredAssumed Answered

How do I get/set Layerswipe width/height at runtime?

Question asked by andy.clark@bcc on Jan 8, 2019

I have a project with a LayerSwipe (Javascript API) in it. We allow a toggle between the modes/type of LayerSwipe which starts as a horizontal/vertical (viewport orientation dependant) and toggles to a scope type, but when we toggle back to horizontal/vertical, the slider reverts to the left/top. Does anyone know of attributes methods to get the position of the slider pre-toggle and to set the width/height when toggled back (or at least set it to a default when toggled back)?

Outcomes