deploy lambda with pmtiles #475
-
Hi there, I'm working on deploying lambda with pmtiles using the cloudformation .yaml file provide. I have set all configurations as well. All my .pmtiles are stored in S3 bucket, in (e.g., tiles/name.pmtiles). However, I cant directly get access to pmtiles through cloudfront https://CLOUDFRONT_name.net/tiles/jibe_basemap.pmtiles and got this error 'Error: Wrong magic number for PMTiles archive'. Also pmtiles are correctly generated and there is no issue with them. Is the format of provided URL is not correct and if so, what this URL should be look like? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Your setup looks correct but if you are using lambda you need to access the tiles via ZXY URLs or TileJSON, not as a raw |
Beta Was this translation helpful? Give feedback.
Your setup looks correct but if you are using lambda you need to access the tiles via ZXY URLs or TileJSON, not as a raw
.pmtiles
file, that's the purpose of the lambda integration. Please follow the docs for your map rendering library on how to add a tiled data source.