Skip to content
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

make it work with WGLMakie #26

Open
lazarusA opened this issue Feb 24, 2023 · 0 comments
Open

make it work with WGLMakie #26

lazarusA opened this issue Feb 24, 2023 · 0 comments

Comments

@lazarusA
Copy link
Collaborator

lazarusA commented Feb 24, 2023

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant