This repository has been archived by the owner on Apr 2, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathsources.dev.yaml
123 lines (115 loc) · 2.91 KB
/
sources.dev.yaml
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
# Generates vtiles from database
genraw:
public: true
formats: [pbf]
uri: tmsource://
yaml:
npm: ["@kartotherian/osm-bright-source", "data.yml"]
yamlSetDataSource:
if:
dbname: gis
host: ''
type: postgis
set:
host: localhost
user: {var: osmdb-user}
password: {var: osmdb-pswd}
gen:
uri: json2tags://
params:
source: {ref: genraw}
tag: name
v4:
public: true
formats: [pbf]
uri: cassandra://
params:
maxzoom: 16
keyspace: v4
cp: {var: cassandra-servers}
username: {var: cassandra-user}
password: {var: cassandra-pswd}
repfactor: 4
durablewrite: 0
createIfMissing: true
copyInfoFrom: {ref: gen}
setLastModified: true
# View tiles as generated directly from the database. Don't view zoom0-5
v4view:
public: true
formats: [png,json,headers,svg,jpeg]
scales: [1.3, 1.5, 2, 2.6, 3]
static: true
maxheight: 2048
maxwidth: 2048
uri: tmstyle://
yaml:
npm: ["@kartotherian/osm-bright-style", "project.yml"]
yamlSetParams:
source: {ref: v4}
# View tiles as generated directly from the database. Don't view zoom0-5
genview:
public: true
formats: [png,json,headers,svg,jpeg]
scales: [1.3, 1.5, 2, 2.6, 3]
static: true
maxheight: 2048
maxwidth: 2048
uri: tmstyle://
yaml:
npm: ["@kartotherian/osm-bright-style", "project.yml"]
yamlSetParams:
source: {ref: gen}
osm-localized:
uri: babel://
params:
source: {ref: v4}
tag: name
combineName: false
defaultLanguage: en
# OSM PBF source
osm-pbf:
public: true
formats: [pbf]
uri: overzoom://
params:
source: {ref: osm-localized}
maxzoom: 18
overrideInfo:
attribution: 'Map data © <a href="http://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
tiles: ["https://maps.wikimedia.org/osm-pbf/{z}/{x}/{y}.pbf"]
# OSM map with international labeling - will be used as default
osm-intl:
public: true
formats: [png,json,headers,svg,jpeg]
scales: [1.3, 1.5, 2, 2.6, 3]
maxzoom: 18
static: true
maxheight: 2048
maxwidth: 2048
uri: tmstyle://
yaml:
npm: ["@kartotherian/osm-bright-style", "project.yml"]
yamlSetParams:
source: {ref: osm-pbf}
overrideInfo:
attribution: 'Map data © <a href="http://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
tiles: ["https://maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png"]
# OSM map without any labels
osm:
public: true
formats: [png,json,headers,svg,jpeg]
scales: [1.3, 1.5, 2, 2.6, 3]
maxzoom: 18
static: true
maxheight: 2048
maxwidth: 2048
uri: tmstyle://
yaml:
npm: ["@kartotherian/osm-bright-style", "project.yml"]
yamlSetParams:
source: {ref: osm-pbf}
yamlExceptLayers: ['country_label', 'place_label', 'poi_label']
overrideInfo:
attribution: 'Map data © <a href="http://openstreetmap.org/copyright">OpenStreetMap contributors</a>'
tiles: ["https://maps.wikimedia.org/osm/{z}/{x}/{y}.png"]