-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
Activate GeoAxis Maps using a GeoMakie extension #114
Conversation
Got an MWE for that so I can have a look? |
Oops I didn't comment earlier - any example from the readme/docs will work but pass a GeoAxis to |
|
||
|
||
# Here, the `area` has already been transformed to the tile CRS | ||
function Tyler.get_tiles_for_area(m::Map{GeoAxis}, scheme::Halo2DTiling, area::Union{Rect,Extent}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This only has to be replicated because the mouseposition has to be inverse-transformed. I don't like the code duplication but that seems like the easiest thing to me...
MWE would really help though, this seems a long way from generally working and things I'm trying the tiles don't load at all. What code made the plot you have above? |
mwe: fig = Figure()
ax = GeoAxis(fig[1, 1])
# plot
b = Rect2f(-20.0, -20.0, 40.0, 40.0)
m = Tyler.Map(b, figure = fig, axis = ax) It's somehow very blurry in WGLMakie, I'm not sure why though. |
Needs docs and tests now, but seems to work. |
Ok this is working great. The only bug I'm seeing is the selected area zoom selects an area in the wrong spot. But mouse scroll zooming goes to the right spot. I'm happy to merge without docs and tests for now so we can get it working with other PRs |
This is all fairly generic / public ish API, so I'm happy to have this live in Tyler. The API is exactly the same as base Tyler, all the CRS handling is done internally.
This works very well for static maps. But when scrolling in and out, after some point I will always see this error: