-
-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
removed screen for running version with JSServe #51
Conversation
will show the tyler map in the JSServe App. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Im mostly concerned that this change means we are spawning tasks that never break out of their while loops.
src/Tyler.jl
Outdated
depth, halo, scale | ||
) | ||
tyler.zoom[] = get_zoom(tyler, extent) | ||
download_task[] = @async begin | ||
while isopen(screen) | ||
while true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this mean the task runs forever now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the big question, I am not quite sure about that, but had no real alternative without the screen in mind.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My guess is this task will just keep running every 0.01 seconds until you kill the session, unless it hits another error from the Makie screen not being there anymore (but I think it wont?).
We can't really do that... we need to find another way of breaking the loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe try printing to stdout in the task and see what happens
src/Tyler.jl
Outdated
@@ -150,14 +147,10 @@ function Map(extent, extent_crs=wgs84; | |||
empty!(tyler.displayed_tiles) | |||
end | |||
display_task[] = @async begin | |||
while isopen(screen) | |||
while true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
bug you need to first scroll in...
I think I should add a function to makie a la |
Implemented in #69 |
With this Tyler works smoothly with JSServe (#47). The only problem might be the for-loops which are now true permanently.