MakieOrg / Tyler.jl

Makie package to plot maptiles from various map providers

Home Page:https://makieorg.github.io/Tyler.jl/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tyler throws error when using CairoMakie

alex-s-gardner opened this issue · comments

When using CairoMakie I get this error

ERROR: please load either GLMakie, WGLMakie or CairoMakie
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] Tyler.Map(rect::GeometryBasics.HyperRectangle{2, Float32}, zoom::Int64, input_cs::MapTiles.WGS84; figure::Figure, coordinate_system::MapTiles.WebMercator, provider::Provider, min_tiles::Int64, max_tiles::Int64, max_parallel_downloads::Int64, cache_size_gb::Int64)
   @ Tyler ~/.julia/packages/Tyler/eajCg/src/Tyler.jl:79
 [3] top-level scope
   @ ~/Documents/GitHub/Altim.jl/src/geolocate_dev.jl:88

I suspect that Tyler only works with GLMakie ?

If that's the case the the Error message needs updating.

commented

Uh, it's a bit unfortunate, but, yeah cairomakie doesn't work right now, but should be easy to fix...
WGLMakie definitely works though!

Why exactly does Tyler require access to the screen? Is it just to know when not to run the download task?

Latest release doesn't require a window open. However, cairomakie is still failing, somehow...

Ah, I forgot that Tyler can't work with CairoMakie as long as it plots meshes, because Cairo's mesh handling only interpolates colors between vertices (it can't handle UVs).