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

fix: evade parsing of pmtiles with NSURL #625

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KiwiKilian
Copy link
Collaborator

Fixes #618

To test, use this Bug Report example #618 (comment)

Now it also works on iOS 17.

@KiwiKilian KiwiKilian requested a review from tyrauber January 20, 2025 17:57
@KiwiKilian
Copy link
Collaborator Author

@conbrad could you please also have a look at this?

@conbrad
Copy link

conbrad commented Jan 20, 2025

@conbrad could you please also have a look at this?

Looks reasonable, however is it possible to simplify, remove the conditional block and just always use tileUrlTemplates, at least until a proper upstream fix is in place?

Regarding @tyrauber 's comment , I believe PMTiles relies solely on HTTP headers, so URL params shouldn't be a factor, unless of course you're using params through a proxy or something...

@KiwiKilian
Copy link
Collaborator Author

@conbrad see my comment here maplibre/maplibre-native#3151 (comment) regarding only using tileUrlTemplates.

@KiwiKilian KiwiKilian requested a review from tyrauber January 20, 2025 21:15
Copy link

@conbrad conbrad left a comment

Choose a reason for hiding this comment

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

LGTM!

@KiwiKilian
Copy link
Collaborator Author

I've posted a workaround to the issue. Therefore lets wait for the release of the fix maplibre/maplibre-native#3163 upstream, then I will adopt this PR.

@KiwiKilian KiwiKilian marked this pull request as draft January 22, 2025 06:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PMTiles URL schema throws error in iOS
3 participants