Skip to content

Commit

Permalink
1.11.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Kanahiro committed Jun 16, 2024
1 parent c2fa0cd commit 8c98149
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
21 changes: 20 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,33 @@ chii-tiler: "tiny" in Japanese is "chiisai", shorten into "chii"

## features

- chiitiler provides you with `/tiles` raster-tile endpoint. Once server launched, you can use like this:
### /tiles

chiitiler provides you with `/tiles` raster-tile endpoint. Once server launched, you can use like this:

```planetext
http://localhost:3000/tiles/0/0/0.png?url=https://tile.openstreetmap.jp/styles/osm-bright/style.json
http://localhost:3000/tiles/0/0/0.webp?margin=100&url=https://tile.openstreetmap.jp/styles/maptiler-toner-en/style.json
http://localhost:3000/tiles/1/1/1.jpg?tileSize=256&quality=80&url=https://tile.openstreetmap.jp/styles/osm-bright/style.json
```

### /bbox

chiitiler provides you with `/bbox` endpoint. Once server launched, you can use like this:

```planetext
# default size is 1024, this is longer axis and shorter axis is calculated by aspect ratio
http://localhost:3000/bbox/100,30,150,60.png?url=https://path/to/style.json
# specify size
http://localhost:3000/bbox/100,30,150,60.webp?size=512&url=https://path/to/style.json
# specify quality
http://localhost:3000/bbox/100,30,150,60.jpg?size=512&quality=80&url=https://path/to/style.json
```

#### POST endpoint

Each endpoint also supports POST method. You can pass style.json as a body. (then, url parameter is not needed)

## architecture

```mermaid
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"type": "module",
"name": "chiitiler",
"version": "1.10.5",
"version": "1.11.0",
"description": "Tiny map rendering server for MapLibre Style Spec",
"main": "dist/main.js",
"scripts": {
Expand Down Expand Up @@ -46,4 +46,4 @@
"pmtiles": "^3.0.5",
"sharp": "^0.32.5"
}
}
}

0 comments on commit 8c98149

Please sign in to comment.