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 is plotting the wrong tiles with Makie 0.21

felixcremer opened this issue · comments

With Makie 0.21 on this branch https://github.com/MakieOrg/Makie.jl/tree/breaking-0.21 Tyler is somehow randomly plotting the wrong tiles see the appearance of France in two zoom levels in the image below.

This is the code I used to produce the plot:

using Tyler, GLMakie
using Extents

fig = Figure()

nax = Axis(fig[1,1])
london = Rect2f(-0.0921, 51.5, 0.04, 0.025)
m = Tyler.Map(london, figure=fig, axis=nax)

This problem does not appear with Makie 0.20.

image

Hm weird... I would have suspected z-fighting, but the z should be quite far appart:
image

Although maybe it's projected/shifted in a way, that it gets close enough for z-fighting, not sure...

I can replicate this locally, and the error seems to happen regardless of which zoom level I'm on. Scaling the z levels also doesn't solve this. It looks almost as if there are stale tiles that become ill-positioned?

This is still an issue on the latest Makie master, although it seems to only happen at higher zoom levels. When zooming in I stop seeing this.

commented

We'll need an MWE to properly debug this....