You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add .pmtiles to mediaExtensions in WebViewAssetHandler
Platforms
iOS
Android
Web
Request or proposed solution
Like audio and video files, PMTiles relies on HTTP 206 Partial Content HTTP responses (made with a range). See https://github.com/protomaps/PMTiles for the client-side library.
In a project I have been developing, I found that on the IOS platform I could not access bundled .pmtiles assets via range request (instead of partial content, full content was returned and triggered errors within the PMTiles client). I discovered after investigation that Capacitor IOS supports 206 responses for certain path extensions only and further that adding .pmtiles to the list of supported extensions resolves the problem and allows access to bundled large vector map tilesets in pmtiles format.
A PR accompanies this issue and passes this addition of the .pmtiles extension back upstream in case others have a requirement to use this mapping library.
Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Description
Add
.pmtiles
tomediaExtensions
inWebViewAssetHandler
Platforms
Request or proposed solution
Like audio and video files, PMTiles relies on HTTP 206 Partial Content HTTP responses (made with a
range
). See https://github.com/protomaps/PMTiles for the client-side library.In a project I have been developing, I found that on the IOS platform I could not access bundled
.pmtiles
assets via range request (instead of partial content, full content was returned and triggered errors within the PMTiles client). I discovered after investigation that Capacitor IOS supports 206 responses for certain path extensions only and further that adding.pmtiles
to the list of supported extensions resolves the problem and allows access to bundled large vector map tilesets in pmtiles format.A PR accompanies this issue and passes this addition of the
.pmtiles
extension back upstream in case others have a requirement to use this mapping library.Alternatives
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: