mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
Update README.md
This commit is contained in:
@@ -19,9 +19,11 @@ Configure these Lambda environment variables:
|
||||
* Example path setting for objects in a directory: `my_folder/{name}/file.pmtiles`
|
||||
* `TILE_PATH`: optional, define the URL route of the tiles API. Default `/{name}/{z}/{x}/{y}.pbf`
|
||||
|
||||
For API Gateway integration, your Lambda Proxy Integration route will need to specify a greedy capturing parameter called `tile_path` e.g. `/tiles/{tile_path+}`
|
||||
|
||||
## Test Event
|
||||
|
||||
API Gateway V2 / Lambda Function URLs:
|
||||
Lambda Function URLs:
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -29,6 +31,16 @@ API Gateway V2 / Lambda Function URLs:
|
||||
}
|
||||
```
|
||||
|
||||
API Gateway (HTTP or REST):
|
||||
|
||||
```json
|
||||
{
|
||||
"pathParameters": {
|
||||
"tile_path": "my-tileset-name/0/0/0.pbf"
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Monitoring
|
||||
|
||||
|
||||
Reference in New Issue
Block a user