`Makie.colorbuffer(fig)` bypasses `wait_on_tick` and returns an empty map
With #145, static renders wait for tiles via an `OneTimeRenderTick` callback. But `Makie.colorbuffer(fig)` never emits a tick (only `save` and `record`'s `TickController` do, see Makie `display.jl` / `ffmpeg-util.jl`), so it captures before any tiles are plotted:
```julia
using CairoMakie, Tyler # Makie 0.24.12
m = Tyler.Map(Rect2f(-0.0921, 51.5, 0.04, 0.025))
img = Makie.colorbuffer(m.figure) # empty map, length(m.plots) == 0
```
Options: emit the tick upstream in Makie's `colorbuffer(::FigureLike)`, or drop `colorbuffer` from the `wait_on_tick` docstring and document `wait(m)` before `colorbuffer`.
0 条评论