-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathconfig.toml
209 lines (175 loc) · 6.12 KB
/
config.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
#[cache]
# type = "s3"
# max_zoom = 16 # zoom level to cache up to (0-X inclusive)
# bucket = "your-tile-bucket"
# region = "us-west-2"
# aws_access_key_id = "accesskey"
# aws_secret_access_key = "secretkey"
# OSM (OpenMapTiles Compat)
[[providers]]
name = "osm" # provider name referenced from map layers (required)
type = "postgis" # the type of data provider. currently only supports postgis (required)
host = "hostname" # postgis database host (required)
port = 5432 # postgis database port (required)
database = "osm" # postgis database name (required)
user = "osm" # postgis database user (required)
password = "supersecure" # postgis database password (required)
srid = 3857 # The default srid for this provider. Defaults to WebMercator (3857) (optional)
max_connections = 64 # The max connections to maintain in the connection pool. Default is 100. (optional)
[[providers.layers]]
name = "aerodrome_label"
geometry_type = "point"
geometry_fieldname = "geom"
id_fieldname = "id"
sql = "SELECT ST_AsBinary(geometry) AS geom, id, name, name_en, name_de, tags, class, iata, icao, ele, ele_ft FROM layer_aerodrome_label(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "aeroway"
geometry_type = "polygon"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, class, ref FROM layer_aeroway(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "boundary"
geometry_type = "linestring"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, admin_level, disputed, disputed_name, claimed_by, maritime FROM layer_boundary(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "building"
geometry_type = "point"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, render_height, render_min_height, colour, hide_3d FROM layer_building(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "housenumber"
geometry_type = "point"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, housenumber FROM layer_housenumber(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "landcover"
geometry_type = "polygon"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, class, subclass FROM layer_landcover(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "landuse"
geometry_type = "polygon"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, class FROM layer_landuse(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "mountain_peak"
geometry_type = "point"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, name, name_en, name_de, class, tags, ele, ele_ft, rank FROM layer_mountain_peak(!BBOX!, !ZOOM!, !PIXEL_WIDTH!)"
[[providers.layers]]
name = "park"
geometry_type = "polygon"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, class, name, name_en, name_de, tags, rank FROM layer_park(!BBOX!, !ZOOM!, !PIXEL_WIDTH!)"
[[providers.layers]]
name = "place"
geometry_type = "point"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, name, name_en, name_de, capital, class, iso_a2, rank FROM layer_place(!BBOX!, !ZOOM!, !PIXEL_WIDTH!)"
[[providers.layers]]
name = "poi"
geometry_type = "point"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, name, name_en, name_de, class, subclass, rank, agg_stop, level, layer, indoor FROM layer_poi(!BBOX!, !ZOOM!, !PIXEL_WIDTH!)"
[[providers.layers]]
name = "transportation"
geometry_type = "linestring"
geometry_fieldname = "geom"
id_fieldname = "osm_id"
sql = "SELECT ST_AsBinary(geometry) AS geom, osm_id, class, subclass, ramp, oneway, brunnel, service, layer, level, indoor, bicycle, foot, horse, mtb_scale, surface FROM layer_transportation(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "transportation_name"
geometry_type = "linestring"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, name, ref, ref_length, network, class, subclass, brunnel, layer, level, indoor FROM layer_transportation_name(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "water"
geometry_type = "polygon"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, class, brunnel, intermittent FROM layer_water(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "water_name"
geometry_type = "point"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, name, name_en, name_de, class, intermittent FROM layer_water_name(!BBOX!, !ZOOM!)"
[[providers.layers]]
name = "waterway"
geometry_type = "linestring"
geometry_fieldname = "geom"
sql = "SELECT ST_AsBinary(geometry) AS geom, name, name_en, name_de, class, brunnel, intermittent FROM layer_waterway(!BBOX!, !ZOOM!)"
[[maps]]
name = "basemap"
attribution = "© OpenMapTiles © OpenStreetMap Contributors"
center = [-71.140027, 42.347621, 15.0]
[[maps.layers]]
provider_layer = "osm.aerodrome_label"
min_zoom = 10
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.aeroway"
min_zoom = 11
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.boundary"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.building"
min_zoom = 13
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.housenumber"
min_zoom = 16
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.landcover"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.landuse"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.mountain_peak"
min_zoom = 7
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.park"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.place"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.poi"
min_zoom = 14
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.transportation"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.transportation_name"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.water"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.water_name"
min_zoom = 0
max_zoom = 16
[[maps.layers]]
provider_layer = "osm.waterway"
min_zoom = 0
max_zoom = 16