Skip to content

Viewport.overrideDisplayStyle #986

Answered by pmconne
paprophet asked this question in Q&A
Discussion options

You must be logged in to vote
// Save a copy of the original style
const oldStyle = viewport.displayStyle.clone();
// Override the style
viewport.overrideDisplayStyle({ /* whatever */ });
// Some time later, restore the original style
viewport.displayStyle = oldStyle;

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@paprophet
Comment options

Answer selected by pmconne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants