Old tiles.ttss.pl backed using MapProxy
Jacek Kowalski
2020-06-03 d1e1f5e507ac2c01c2633fb026f98f2bdf30271f
commit | author | age
d1e1f5 1 parts:
JK 2   coverages:
3     extent: &coverage-extent
4       datasource: extent.geojson
5       srs: 'EPSG:4326'
6     world: &coverage-world
7       bbox: [-180, -90, 180, 90]
8       srs: 'EPSG:4326'
9     world_except_extent: &coverage-world-except
10       difference:
11         - *coverage-world
12         - *coverage-extent
13
14 globals:
15   image:
16     resampling_method: bilinear
17     paletted: true
18   cache:
19     meta_size: [4, 4]
20
21 grids:
22   webmercator:
23     srs: 'EPSG:3857'
24     origin: nw
25     min_res: 156543.03392804097
26   webmercator_x1:
27     srs: 'EPSG:3857'
28     origin: nw
29     min_res: 156543.03392804097
30   webmercator_x2:
31     srs: 'EPSG:3857'
32     origin: nw
33     min_res: 78271.51696402048
34     tile_size: [512,512]
35
36 sources:
37   osm_source:
38     type: tile
39     url: http://tile.openstreetmap.org/%(z)s/%(x)s/%(y)s.png
40     concurrent_requests: 4
41     grid: webmercator
42     max_res: 2445.98490512564
43     coverage: *coverage-world-except
44     on_error:
45       204:
46         response: transparent
47         cache: True
48       other:
49         response: '#ff0000'
50         cache: False
51   mapnik_pl_x1_source:
52     type: mapnik
53     mapfile: ../carto/mapnik.xml
54     concurrent_requests: 12
55     coverage: *coverage-extent
56   mapnik_pl_x2_source:
57     type: mapnik
58     mapfile: ../carto/mapnik.xml
59     scale_factor: 2
60     concurrent_requests: 12
61     coverage: *coverage-extent
62
63 caches:
64   osm_cache:
65     sources: [osm_source]
66     grids: [webmercator]
67   mapnik_x1_cache:
68     sources: [mapnik_pl_x1_source]
69     grids: [webmercator_x1]
70   mapnik_x2_cache:
71     sources: [mapnik_pl_x2_source]
72     grids: [webmercator_x2]
73
74 layers:
75   - name: osm
76     title: OpenStreetMap
77     sources: [osm_cache]
78   - name: mapnik_x1
79     title: OpenStreetMap Extent
80     sources: [mapnik_x1_cache]
81   - name: mapnik_x2
82     title: OpenStreetMap Extent
83     sources: [mapnik_x2_cache]
84
85 services:
86   tms:
87     use_grid_names: true