|
1 | 1 | # Cloud-Tileserver
|
2 | 2 |
|
3 |
| -[](https://travis-ci.org/henrythasler/cloud-tileserver) [](https://coveralls.io/github/henrythasler/cloud-tileserver?branch=master) [](https://sonarcloud.io/dashboard?id=henrythasler_cloud-tileserver) |
| 3 | +[](https://travis-ci.org/henrythasler/cloud-tileserver) [](https://coveralls.io/github/henrythasler/cloud-tileserver?branch=master) |
| 4 | +[](https://sonarcloud.io/dashboard?id=henrythasler_cloud-tileserver) |
| 5 | +[](https://lgtm.com/projects/g/henrythasler/cloud-tileserver/alerts/) |
| 6 | +[](https://lgtm.com/projects/g/henrythasler/cloud-tileserver/context:javascript) |
4 | 7 |
|
5 |
| -Serve mapbox vectortiles via AWS stack. |
| 8 | +Serve mapbox vectortiles via AWS stack. Please visit the [Wiki](https://github.com/henrythasler/cloud-tileserver/wiki) for installation instructions. |
6 | 9 |
|
7 | 10 | ## Goals
|
8 | 11 |
|
@@ -40,36 +43,3 @@ The Live-Demo is available at: [cyclemap.link](https://cyclemap.link)
|
40 | 43 | [](https://cyclemap.link/#15/48.17374/11.54676)
|
41 | 44 |
|
42 | 45 | [](https://cyclemap.link/#14/47.01863/11.5046)
|
43 |
| - |
44 |
| -### TOML Source-Definition file |
45 |
| - |
46 |
| -The Lambda-function is configured via a toml-file (`sources.toml`). during the build-process. The TOML-File **should** contain an array of `sources`. Each source **may** contain properties and **should** contain an array of `layers`. Each Layer **may** contain properties and **may** contain an array of `variants`. |
47 |
| - |
48 |
| -``` |
49 |
| -[[sources]] |
50 |
| - property = foo |
51 |
| - (...) |
52 |
| - [[sources.layers]] |
53 |
| - property = bar |
54 |
| - (...) |
55 |
| - [[sources.layers.variants]] |
56 |
| - property = something |
57 |
| -``` |
58 |
| - |
59 |
| -#### Layer Properties |
60 |
| - |
61 |
| -property | type | description | default if not given |
62 |
| ----|---|---|--- |
63 |
| -name | `string` | A name for the item. Must be alphanumeric + underscore [A-Za-z0-9_]. No special characters allowed. | (must be provided) |
64 |
| -minzoom | `number` | minimum (greater-or-equal-than) zoom value where the layer must be provided | `0` |
65 |
| -maxzoom | `number` | maximum (less-than) zoom value where the layer must be provided | `32` |
66 |
| -geom | `string` | name of the geometry-column to be used in the vector tile | `"geometry"` |
67 |
| -keys | `string[]` | array of column names that will be encoded besides the geometry column. May contain SQL-expressions.| `""` |
68 |
| -where | `string[]` | array of conditions that will be used in the SQL-query as `WHERE`-Clause. Multiple conditions are concatenated with `AND` | `""` |
69 |
| -prefix | `string` | SQL-Statement that will be inserted **before** the `ST_AsMvtGeom`-Function. Useful for `DISTINCT ON()`-Statements | `""` |
70 |
| -postfix | `string` | SQL-Statement that will be inserted **after** the `WHERE`-Clause. Useful for `ORDER BY`-Statements | `""` |
71 |
| -srid | `number` | identifier of the [spatial reference system](https://postgis.net/docs/manual-1.4/ch04.html#spatial_ref_sys) | `3857` |
72 |
| -extend | `number` | tile extent in pixels (see [ST_AsMVTGeom](https://postgis.net/docs/manual-dev/ST_AsMVTGeom.html)) | `4096` |
73 |
| -buffer | `number` | buffer in pixels around each tile (see [ST_AsMVTGeom](https://postgis.net/docs/manual-dev/ST_AsMVTGeom.html)) | `256` |
74 |
| -clip_geom | `boolean` | clip geometries that lie outside the current tile incl. buffer (see [ST_AsMVTGeom](https://postgis.net/docs/manual-dev/ST_AsMVTGeom.html)) | `true` |
75 |
| - |
0 commit comments