-
-
Save OnkelTem/2fed864f1b19684cd8a3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- !def [ bounds, [-180, -85.05112877980659, 180, 85.05112877980659] ] | |
--- !def | |
- global | |
- scale: 1 | |
metatile: 2 | |
bounds: !use [ bounds ] | |
center: [0, 0, 4] | |
format: png | |
interactivity: false | |
minzoom: 0 | |
maxzoom: 22 | |
srs: "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" | |
--- !def | |
- srs | |
- srs-name: "900913" | |
srs: "+proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0.0 +k=1.0 +units=m +nadgrids=@null +wktext +no_defs +over" | |
- srs-name: "WGS84" | |
srs: "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs" | |
- srs-name: "mercator" | |
srs: "+proj=merc +datum=WGS84 +over" | |
--- !def | |
- osm2pgsql | |
- type: "postgis" | |
dbname: "gis" | |
key_field: "" | |
geometry_field: "way" | |
extent: "-20037508,-20037508,20037508,20037508" | |
--- !def | |
- lay | |
- id: "" | |
name: "" | |
class: "" | |
geometry: "polygon" | |
extent: !use [ bounds ] | |
<<: !use [ srs: { srs-name: "900913"} ] | |
Datasource: | |
file: '' | |
type: shape | |
advanced: {} | |
properties: { minzoom: 1, maxzoom: 22 } | |
--- !def | |
- laysql | |
- <<: !use [ lay ] | |
Datasource: | |
type: "postgis" | |
dbname: "gis" | |
key_field: "" | |
geometry_field: "way" | |
extent: "-20037508,-20037508,20037508,20037508" | |
# Shape-file based layers | |
--- !def | |
- layer | |
- !use [ lay, { <<: !layerFile [ 'world', 'polygon', [ 1, 9 ], "data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp" ]}] | |
- !use [ lay, { <<: !layerFile [ 'coast-poly', 'polygon', [ 10 ], "data/land-polygons-split-3857/land_polygons.shp" ]}] | |
- !use [ lay, { <<: !layerFile [ 'builtup', 'polygon', [ 8, 9 ], "data/world_boundaries/builtup_area.shp" ], <<: !use [ srs: { srs-name: "mercator"}] }] | |
- !use [ lay, { <<: !layerFile [ 'necountries', 'linestring', [ 1, 3 ], "data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp" ], <<: !use [ srs: { srs-name: "WGS84"}] }] | |
- !use [ lay, { <<: !layerFile [ 'icesheet-poly', 'polygon', [ 4 ], "data/antarctica-icesheet-polygons-3857/icesheet_polygons.shp" ]}] | |
- !use [ lay, { <<: !layerFile [ 'icesheet-outlines', 'linestring', [ 4 ], "data/antarctica-icesheet-outlines-3857/icesheet_outlines.shp" ]}] | |
# SQL Layers | |
- !use [ laysql, { <<: !layerSql [ 'landcover-low-zoom', 'polygon', [ 1, 9 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'landcover', 'polygon', [ 10 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'landcover-line', 'linestring', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-lines-casing', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-lines-low-zoom', 'linestring', [ 8, 11 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-areas', 'polygon', [ 4 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'landcover-area-symbols', 'polygon', [ 10 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-lines', 'linestring', [ 12 ] ], class: water-lines }] | |
- !use [ laysql, { <<: !layerSql [ 'water-barriers-line', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-barriers-poly', 'polygon', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'marinas-area', 'polygon', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'piers-poly', 'polygon', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'piers-line', 'linestring', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-barriers-point', 'point', [ 17 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'bridge', 'polygon', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'buildings', 'polygon', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'buildings-major', 'polygon', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'tunnels', 'linestring', [ 9, 11, { group-by: layernotnull } ]], class: tunnels-fill tunnels-casing access directions }] | |
- !use [ laysql, { <<: !layerSql [ 'citywalls', 'linestring', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'landuse-overlay', 'polygon', [ 7 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'line-barriers', 'linestring', [ 16 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'cliffs', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'area-barriers', 'polygon', [ 16 ] ], class: barriers }] | |
- !use [ laysql, { <<: !layerSql [ 'ferry-routes', 'linestring', [ 7 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'turning-circle-casing', 'point', [ 15 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'highway-area-casing', 'polygon', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-casing', 'linestring', [ 9 ] ], class: roads-casing }] | |
- !use [ laysql, { <<: !layerSql [ 'highway-area-fill', 'polygon', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-fill', 'linestring', [ 10 ] ], class: roads-fill access directions }] | |
- !use [ laysql, { <<: !layerSql [ 'turning-circle-fill', 'point', [ 15 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'aerialways', 'linestring', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-low-zoom', 'linestring', [ 5, 9 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'waterway-bridges', 'linestring', [ 15 ] ], class: water-lines }] | |
- !use [ laysql, { <<: !layerSql [ 'bridges', 'linestring', [ 9, 22, { group-by: layernotnull } ] ], class: bridges-fill bridges-casing access directions }] | |
- !use [ laysql, { <<: !layerSql [ 'guideways', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'admin-low-zoom', 'linestring', [ 1, 10 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'admin-mid-zoom', 'linestring', [ 11, 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'admin-high-zoom', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'power-minorline', 'linestring', [ 16 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'nature-reserve-boundaries', 'polygon', [ 7 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'tourism-boundary', 'polygon', [ 10 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'trees', 'polygon', [ 16 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'placenames-large', 'point', [ 2 ] ], class: country state }] | |
- !use [ laysql, { <<: !layerSql [ 'placenames-medium', 'point', [ 3, 15 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'placenames-small', 'point', [ 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'stations', 'point', [ 12 ] ], class: stations }] | |
- !use [ laysql, { <<: !layerSql [ 'stations-poly', 'polygon', [ 12 ] ], class: stations }] | |
- !use [ laysql, { <<: !layerSql [ 'amenity-points-poly', 'polygon', [ 10 ] ], class: points }] | |
- !use [ laysql, { <<: !layerSql [ 'amenity-points', 'point', [ 10 ] ], class: points }] | |
- !use [ laysql, { <<: !layerSql [ 'power-towers', 'point', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'power-poles', 'point', [ 16 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-text-ref-low-zoom', 'linestring', [ 10, 12 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'junctions', 'point', [ 11 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'bridge-text', 'polygon', [ 11 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-text-ref', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-area-text-name', 'polygon', [ 15 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'roads-text-name', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'paths-text-name', 'linestring', [ 15 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'text-poly-low-zoom', 'linestring', [ 7, 9 ] ], class: text-low-zoom }] | |
- !use [ laysql, { <<: !layerSql [ 'text-poly', 'polygon', [ 10 ] ], class: text }] | |
- !use [ laysql, { <<: !layerSql [ 'text-line', 'linestring', [ 10 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'text-point', 'point', [ 10 ] ], class: text }] | |
- !use [ laysql, { <<: !layerSql [ 'building-text', 'polygon', [ 14 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'interpolation', 'linestring', [ 17 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'housenumbers', 'point', [ 17 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'housenames', 'point', [ 17 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'water-lines-text', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'ferry-routes-text', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'admin-text', 'linestring', [ 16 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'nature-reserve-text', 'linestring', [ 13 ] ] }] | |
- !use [ laysql, { <<: !layerSql [ 'amenity-low-priority', 'point', [ 14 ] ], , class: amenity-low-priority }] | |
- !use [ laysql, { <<: !layerSql [ 'amenity-low-priority-poly', 'polygon', [ 14 ] ], , class: amenity-low-priority }] | |
--- | |
# Usage example | |
Layer: | |
- !use [ layer: { id: tunnels } ] | |
# - !use [ layer: { id: water-lines-casing } ] | |
# - !use [ layer: { id: landcover-line } ] | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment