From 8c9814927dde0cb9cda2a13150ab50b77efe9f39 Mon Sep 17 00:00:00 2001 From: Kanahiro Date: Sun, 16 Jun 2024 18:05:38 +0900 Subject: [PATCH] 1.11.0 --- README.md | 21 ++++++++++++++++++++- package.json | 4 ++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index ee98599..c578cfe 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,9 @@ 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 @@ -24,6 +26,23 @@ http://localhost:3000/tiles/0/0/0.webp?margin=100&url=https://tile.openstreetmap 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 diff --git a/package.json b/package.json index 77cd3a5..19db541 100644 --- a/package.json +++ b/package.json @@ -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": { @@ -46,4 +46,4 @@ "pmtiles": "^3.0.5", "sharp": "^0.32.5" } -} +} \ No newline at end of file