Tyler.jl
Tyler.jl copied to clipboard
make it work with WGLMakie
In the current version, doing:
using WGLMakie
using Tyler
tyler = Tyler.Map(Rect2f(-0.0921, 51.5, 0.04, 0.025))
shows the map and getting new tiles is possible. However, some errors are alive 😄
weird: this only show up once (the first time I ran the lines).
ERROR: MethodError: no method matching similar(::Nothing, ::Type{Any})
Closest candidates are:
similar(::Union{LinearAlgebra.Adjoint{T, var"#s886"}, LinearAlgebra.Transpose{T, var"#s886"}} where {T, var"#s886"<:(AbstractVector)}, ::Type{T}) where T at /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/LinearAlgebra/src/adjtrans.jl:207
similar(::Union{LinearAlgebra.Adjoint{T, S}, LinearAlgebra.Transpose{T, S}} where {T, S}, ::Type{T}) where T at /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/LinearAlgebra/src/adjtrans.jl:211
similar(::Union{LinearAlgebra.Adjoint{T, S}, LinearAlgebra.Transpose{T, S}} where {T, S}, ::Type{T}, ::Tuple{Vararg{Int64, N}}) where {T, N} at /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/LinearAlgebra/src/adjtrans.jl:212
...
and
An exception was thrown in JS: Error: Key 18059950468910541220 not found! undefined
Additional message: Error while processing message {"payload":["normalmatrix",{"0":1,"1":0,"2":0,"3":0,"4":1,"5":0,"6":0,"7":0,"8":1}],"id":"18059950468910541220","msg_type":"0"}
Stack trace:
Error: Key 18059950468910541220 not found! undefined
at lookup_global_object (/Users/lalonso/.julia/packages/JSServe/KDXZU/js_dependencies/JSServe.bundled.js:3012)
at Object.process_message (/Users/lalonso/.julia/packages/JSServe/KDXZU/js_dependencies/JSServe.bundled.js:3085)
at /Users/lalonso/.julia/packages/JSServe/KDXZU/js_dependencies/Websocket.bundled.js:92
at new Promise (<anonymous>)
at websocket.onmessage (/Users/lalonso/.julia/packages/JSServe/KDXZU/js_dependencies/Websocket.bundled.js:90)
An exception was thrown in JS: Error: Key 18059950468910541220 not found! undefined
Additional message: Error while processing message {"payload":["normalmatrix",{"0":1,"1":0,"2":0,"3":0,"4":1,"5":0,"6":0,"7":0,"8":1}],"id":"18059950468910541220","msg_type":"0"}
Stack trace:
Error: Key 18059950468910541220 not found! undefined
at lookup_global_object
and when zoom in and out, the following warnings:
@/Users/lalonso/.julia/packages/JSServe/KDXZU/js_dependencies/Websocket.bundled.js:90
┌ Warning: getting tile plot already plotted
└ @ Tyler ~/.julia/packages/Tyler/3bd3k/src/Tyler.jl:195
┌ Warning: getting tile plot already plotted
└ @ Tyler ~/.julia/packages/Tyler/3bd3k/src/Tyler.jl:195
┌ Warning: getting tile plot already plotted
└ @ Tyler ~/.julia/packages/Tyler/3bd3k/src/Tyler.jl:195
┌ Warning: getting tile plot already plotted
└ @ Tyler ~/.julia/packages/Tyler/3bd3k/src/Tyler.jl:195