-
Notifications
You must be signed in to change notification settings - Fork 7
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
add z_index function #24
base: master
Are you sure you want to change the base?
Conversation
We assume tiles are the standard 256*256 pixels. Note that this is not an | ||
enforced standard, and that retina tiles are 512*512. |
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.
Perhaps it's best to directly add the tile size as an argument?
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.
Ok I considered that too. I guess a keyword with default is best.
Co-authored-by: Martijn Visser <[email protected]>
We assume tiles are the standard 256*256 pixels. Note that this is not an | ||
enforced standard, and that retina tiles are 512*512. | ||
""" | ||
function z_index(extent::Extent, res::NamedTuple, crs::WebMercator) |
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.
Should this also accept tuples (x, y) as Makie does? In that case we can also make z_index(..., Tuple) = z_index(..., (; X = ..., Y = ...))
or so.
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.
There should probably also be a catchall method to error when crs
is not WebMercator
(for now...)
Adds a function to get the z index for a specific extent and resolution.
Needs tests