kopia lustrzana https://github.com/openmaptiles/openmaptiles
168 wiersze
5.0 KiB
YAML
168 wiersze
5.0 KiB
YAML
_prefs:
|
|
disabled: []
|
|
inspector: false
|
|
mapid: ''
|
|
rev: ''
|
|
saveCenter: true
|
|
attribution: "<a href=\"http://www.openstreetmap.org/about/\" target=\"_blank\">© OpenStreetMap contributors</a>"
|
|
center:
|
|
- 8.6627
|
|
- 47.3872
|
|
- 0
|
|
description: "Free global vector tiles from OpenStreetMap. http://osm2vectortiles.org"
|
|
Layer:
|
|
- id: water
|
|
Datasource:
|
|
dbname: osm
|
|
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
|
|
geometry_field: geom
|
|
geometry_table: ''
|
|
host: db
|
|
key_field: ''
|
|
key_field_as_attribute: ''
|
|
max_size: 512
|
|
password: osm
|
|
port: 5432
|
|
srid: ''
|
|
table: |-
|
|
( SELECT *
|
|
FROM (
|
|
SELECT * FROM water_z0
|
|
WHERE z(!scale_denominator!) = 0
|
|
UNION ALL
|
|
SELECT * FROM water_z1
|
|
WHERE z(!scale_denominator!) = 1
|
|
UNION ALL
|
|
SELECT * FROM water_z2
|
|
WHERE z(!scale_denominator!) BETWEEN 2 AND 3
|
|
UNION ALL
|
|
SELECT * FROM water_z4
|
|
WHERE z(!scale_denominator!) = 4
|
|
UNION ALL
|
|
SELECT * FROM water_z5
|
|
WHERE z(!scale_denominator!) = 5
|
|
) AS water
|
|
WHERE geom && !bbox!
|
|
) AS data
|
|
type: postgis
|
|
user: osm
|
|
description: Ocean and lake polygons
|
|
fields: {}
|
|
properties:
|
|
"buffer-size": 4
|
|
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
|
|
- id: boundary
|
|
Datasource:
|
|
dbname: osm
|
|
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
|
|
geometry_field: geom
|
|
geometry_table: ''
|
|
host: db
|
|
key_field: ''
|
|
key_field_as_attribute: ''
|
|
max_size: 512
|
|
password: osm
|
|
port: 5432
|
|
srid: ''
|
|
table: |-
|
|
( SELECT *
|
|
FROM (
|
|
SELECT * FROM boundary_z0 WHERE z(!scale_denominator!) = 0
|
|
UNION ALL
|
|
SELECT * FROM boundary_z1 WHERE z(!scale_denominator!) BETWEEN 1 AND 2
|
|
UNION ALL
|
|
SELECT * FROM boundary_z3 WHERE z(!scale_denominator!) BETWEEN 3 AND 4
|
|
UNION ALL
|
|
SELECT * FROM boundary_z5 WHERE z(!scale_denominator!) BETWEEN 5 AND 6
|
|
UNION ALL
|
|
SELECT * FROM boundary_z7 WHERE z(!scale_denominator!) >= 7
|
|
) AS admin
|
|
WHERE geom && !bbox!
|
|
) AS data
|
|
type: postgis
|
|
user: osm
|
|
description: Buildings
|
|
fields:
|
|
admin_level: Number
|
|
class: String
|
|
scalerank: Number
|
|
properties:
|
|
"buffer-size": 4
|
|
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
|
|
- id: road
|
|
Datasource:
|
|
dbname: osm
|
|
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
|
|
geometry_field: geom
|
|
geometry_table: ''
|
|
host: db
|
|
key_field: ''
|
|
key_field_as_attribute: ''
|
|
max_size: 512
|
|
password: osm
|
|
port: 5432
|
|
srid: ''
|
|
table: |-
|
|
( SELECT *
|
|
FROM (
|
|
SELECT * FROM road_z4 WHERE z(!scale_denominator!) = 4
|
|
UNION ALL
|
|
SELECT * FROM road_z5 WHERE z(!scale_denominator!) = 5
|
|
UNION ALL
|
|
SELECT * FROM road_z6 WHERE z(!scale_denominator!) = 6
|
|
UNION ALL
|
|
SELECT * FROM road_z7 WHERE z(!scale_denominator!) >= 7
|
|
) AS road
|
|
WHERE geom && !bbox!
|
|
) AS data
|
|
type: postgis
|
|
user: osm
|
|
description: Buildings
|
|
fields:
|
|
featureclass: String
|
|
scalerank: Number
|
|
type: String
|
|
properties:
|
|
"buffer-size": 4
|
|
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
|
|
- id: building
|
|
Datasource:
|
|
dbname: osm
|
|
extent: -20037508.34,-20037508.34,20037508.34,20037508.34
|
|
geometry_field: way
|
|
geometry_table: ''
|
|
host: db
|
|
key_field: ''
|
|
key_field_as_attribute: ''
|
|
max_size: 512
|
|
password: osm
|
|
port: 5432
|
|
srid: ''
|
|
table: |-
|
|
( SELECT
|
|
osm_id,
|
|
way,
|
|
least(greatest(3, COALESCE(height, levels*3.66,5)),400)^.7 AS render_height
|
|
FROM (
|
|
SELECT osm_id, ST_Simplify(way, 10) AS way, height, levels FROM building_z13
|
|
WHERE z(!scale_denominator!) = 13
|
|
UNION ALL
|
|
SELECT * FROM building_z14
|
|
WHERE z(!scale_denominator!) >= 14
|
|
) AS water
|
|
WHERE way && !bbox!
|
|
ORDER BY render_height, ST_YMin(way) DESC
|
|
) AS data
|
|
type: postgis
|
|
user: osm
|
|
description: Buildings
|
|
fields:
|
|
osm_id: Number
|
|
render_height: Number
|
|
properties:
|
|
"buffer-size": 4
|
|
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
|
|
maxzoom: 14
|
|
minzoom: 0
|
|
name: OSM2VectorTiles v3.0
|