Dynamically switch themes #1257
Answered
by
devemux86
dnesbitt61
asked this question in
Q&A
|
Is there a safe way to dynamically switch themes? It seems that calling setTheme is leading to ClosedByInterruptException when loading vector tiles. It looks like setting the theme while tiles are being loaded is bad (as I guess i would expect it to be!). Is there a way to determine that no threads are actively working or that rendering is done and doWork methods are not active - or to add a task that can be performed after all tile access is complete? |
Answered by
devemux86
Sep 19, 2025
Replies: 1 comment
|
@dnesbitt61 Switching themes means: create new vector layer, set its maps and theme, load the new vector layer. |
0 replies
Answer selected by
devemux86
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@dnesbitt61 Switching themes means: create new vector layer, set its maps and theme, load the new vector layer.