-
I uploaded a pmtiles file to an r2 instance on Cloudflare, configured a custom domain and created a worker with the code provided in the Protomaps docs for Cloudflare integration. But I am getting this error while loading the file through a web app. I checked this url in the PMTiles viewer and get the same error message. What seems to be the problem? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 17 replies
-
If you are using the cloudflare worker integration, than your endpoint /z/x/y.mvt is now transformed into a ZXY endpoint, not a .pmtiles anymore, so you should specify that ZXY URL in your frontend code; you don't need any PMTiles related libraries on the frontend at all. |
Beta Was this translation helpful? Give feedback.
If you are using the cloudflare worker integration, than your endpoint /z/x/y.mvt is now transformed into a ZXY endpoint, not a .pmtiles anymore, so you should specify that ZXY URL in your frontend code; you don't need any PMTiles related libraries on the frontend at all.