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

fill out some ignored API functions #113

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

asinghvi17
Copy link
Member

useful if using Tyler outside of Makie, and will make the code more portable to MapTiles in the future!

useful if using Tyler outside of Makie
@@ -44,6 +44,8 @@ function unique_filename(url)
return string(hash(url))
end

file_ending(provider::TileProviders.Provider) = ".some_unknown_image_format"
Copy link
Collaborator

@rafaqz rafaqz Nov 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Provider urls usually end with the image format after you strip the query

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what should we do here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Splitext(Geturl(provider, 0,0,0))[2] maybe?

On mobile so capitalization is a bit off. But if anyone wants to do this feel free to go ahead.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You may have to strip the query after ? first

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URIs.URI(url).query/path, parses it into the parts.

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

Successfully merging this pull request may close these issues.

4 participants