-
Hi there, I've been trying to understand how the The use-case here, is having nodejs as a proxy for serving the tiles directly from S3 or local disk, so there wont be a Let me know if that makes sense, happy to provide more info if needed. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
I was looking for this exact thing. I have a half baked forked version that extracts the byte offset calculation logic out of |
Beta Was this translation helpful? Give feedback.
-
Right, there isn't an interface for that right now, but it would make sense to add something like that - I'm trying to understand the use case here though. There is still a An implementation of an S3 source exists here, and maybe this deserves to become part of the NPM package: https://github.com/protomaps/PMTiles/blob/main/serverless/aws/src/index.ts#L87 |
Beta Was this translation helpful? Give feedback.
-
I think for us, we already have application servers that can handle the requests, and by proxying through our service we can leverage our existing systems for things like auth, rate limiting, monitoring, etc... as well as the ability to easily change which tiles are being used. From a cost / maintenance perspective, this also seems preferable to using lambdas.
I'm still relatively new to PMTiles, so perhaps I'm missing some of the pieces here, mainly how the directories fit in. I assumed it was just the range headers that would return the compiled data (in our case, vector tiles in .pbf) that could be send back to the client. Will take a look at that S3 source, that seems like a good approach 👍 |
Beta Was this translation helpful? Give feedback.
-
Just to follow up, I wrote an article detailing how I solved this in case anyone is interested: https://ckochis.com/serve-protomaps-tiles-with-nodejs |
Beta Was this translation helpful? Give feedback.
Just to follow up, I wrote an article detailing how I solved this in case anyone is interested: https://ckochis.com/serve-protomaps-tiles-with-nodejs