chiitiler 1.11.1 → 1.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -26,17 +26,17 @@ http://localhost:3000/tiles/0/0/0.webp?margin=100&url=https://tile.openstreetmap
|
|
|
26
26
|
http://localhost:3000/tiles/1/1/1.jpg?tileSize=256&quality=80&url=https://tile.openstreetmap.jp/styles/osm-bright/style.json
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
### /
|
|
29
|
+
### /clip.png|webp|jpg|jpeg
|
|
30
30
|
|
|
31
|
-
chiitiler provides you with `/
|
|
31
|
+
chiitiler provides you with `/clip.png|webp|jpg|jpeg` endpoint. Once server launched, you can use like this:
|
|
32
32
|
|
|
33
33
|
```planetext
|
|
34
34
|
# default size is 1024, this is longer axis and shorter axis is calculated by aspect ratio
|
|
35
|
-
http://localhost:3000/bbox
|
|
35
|
+
http://localhost:3000/clip.png?bbox=100,30,150,60&url=https://path/to/style.json
|
|
36
36
|
# specify size
|
|
37
|
-
http://localhost:3000/bbox
|
|
37
|
+
http://localhost:3000/clip.png?bbox=100,30,150,6&size=512&url=https://path/to/style.json
|
|
38
38
|
# specify quality
|
|
39
|
-
http://localhost:3000/bbox
|
|
39
|
+
http://localhost:3000/clip.png?bbox=100,30,150,6&size=512&quality=80&url=https://path/to/style.json
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
#### POST endpoint
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "chiitiler",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.12.1",
|
|
5
5
|
"description": "Tiny map rendering server for MapLibre Style Spec",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"better-sqlite3": "^9.6.0",
|
|
45
45
|
"commander": "^11.0.0",
|
|
46
46
|
"file-system-cache": "^2.4.4",
|
|
47
|
-
"generic-pool": "^3.9.0",
|
|
48
47
|
"hono": "^4.3.0",
|
|
48
|
+
"lightning-pool": "^4.2.2",
|
|
49
49
|
"memory-cache-node": "^1.4.0",
|
|
50
50
|
"pmtiles": "^3.0.5",
|
|
51
51
|
"sharp": "^0.32.5"
|