Lambda server for xyz map generation to provide apis for serving both raster and vector map.
npm install @basemaps/lambda-tilerLambda server for xyz map generation to provide apis for serving both raster and vector map.
All available APIs are defined in the index.ts
Host: https://basemaps.linz.govt.nz/
Validate the server status, health, version which is using for the ci/cd.
- GET /ping
- GET /v1/ping
- GET /version
- GET /v1/version
- GET /health
- GET /v1/health
Get a tile from the xyz and format for map generation, support both vector and raster tileSet.
- GET /v1/tiles/:tileSet/:tileMatrix/:z/:x/:y.:tileType
Example:
```
/v1/tiles/topographic/WebMercatorQuad/2/1/1.pbf - Vector Tile
/v1/tiles/aerial/WebMercatorQuad/6/0/38.webp - Raster Tile
Fetch the imagery metadata based on the imageryId
- GET /v1/imagery/:imageryId/:fileName
Examples:
```
/v1/imagery/:imageryId/source.geojson - Source boudning boxes
/v1/imagery/:imageryId/covering.geojson - Output tile bounding boxes
/v1/imagery/:imageryId/cutline.geojson - Cutline used ont he imagery set
/v1/imagery/:imageryId/collection.json - STAC Collection
/v1/imagery/:imageryId/15-32659-21603.json - STAC Item
Fetch the imagery and tile set configurations
- GET /v1/config/:tileSet.json
- GET /v1/config/:tileSet/:imageryId.json
To get the fonts and sprites for the vector map.
- GET /v1/sprites/:spriteName
- GET /v1/fonts.json
- GET /v1/fonts/:fontStack/:range.pbf
Get the style json and tile json for the vector map.
- GET /v1/styles/:styleName.json
- GET /v1/tiles/:tileSet/:tileMatrix/tile.json
Serve a preview of a imagery set
- GET /v1/preview/:tileSet/:tileMatrix/:z/:lon/:lat
- GET /v1/@:location
- GET /@:location
Get attribution json for the map attributions.
- GET /v1/tiles/:tileSet/:tileMatrix/attribution.json
- GET /v1/attribution/:tileSet/:tileMatrix/summary.json
Get WMTS xml from the server to support QGIS and Arcgis
- GET /v1/tiles/:tileSet/:tileMatrix/WMTSCapabilities.xml
- GET /v1/tiles/:tileSet/WMTSCapabilities.xml
- GET /v1/tiles/WMTSCapabilities.xml