Tyler.jl icon indicating copy to clipboard operation
Tyler.jl copied to clipboard

Distortion Plotting Into a GeoAxis After Recent Update

Open elipivo opened this issue 4 months ago • 4 comments

I just updated to Tyler v0.2.4 and GeoMakie v0.7.15 and have a new issue plotting into a GeoAxis.

Plotting into an Axis with

f = Figure()
usa_region = Rect2f(-85, 27, 20, 15)
ax = Axis(f[1,1])
m = Tyler.Map(usa_region; figure=f, axis=ax);
wait(m)
f

gives a nice map:

Image

There is some distortion plotting into a GeoAxis now with

f = Figure()
usa_region = Rect2f(-85, 27, 20, 15)
ax = GeoAxis(f[1,1],
    xgridvisible = false,
    xticksvisible = false,
    xticklabelsvisible = false,
    ygridvisible = false,
    yticksvisible = false,
    yticklabelsvisible = false,
    dest="+proj=webmerc +datum=WGS84",
)
m = Tyler.Map(usa_region; figure=f, axis=ax);
wait(m)
f
Image

elipivo avatar Aug 01 '25 20:08 elipivo

Which Makie backend (GLMakie, WGLMakie) was this on?

asinghvi17 avatar Aug 01 '25 22:08 asinghvi17

This was with CairoMakie.

elipivo avatar Aug 01 '25 23:08 elipivo

Ah, which version were you updating from?

It was probably using the image recipe which should never have worked. CairoMakie will need a specialized meshimage rendering pipeline to do this, we should probably just add that.

Are you able to use GLMakie? CairoMakie is in general not well supported by Tyler.

asinghvi17 avatar Aug 06 '25 17:08 asinghvi17

Looking back at previous versions of the project Manifest, Tyler was v0.2.3, GeoMakie was v0.7.13, and CairoMakie was v0.13.10. The example above was with Tyler v0.2.4, GeoMakie v0.7.15, and CairoMakie v0.15.4.

I was trying to use CairoMakie for this as the plots are for publication and elements of the plots are lines, scatter points, etc. which are not raster data.

elipivo avatar Aug 06 '25 18:08 elipivo