From bed4f0f99765a508302635e264a42f95785e7729 Mon Sep 17 00:00:00 2001 From: Paul Norman Date: Sat, 27 Dec 2014 21:43:18 -0800 Subject: [PATCH] Manually add max/min zoom to layers --- project.mml | 389 ++++++++++++++++++++++++++++++++++++++++----------- project.yaml | 159 +++++++++++++++++++++ 2 files changed, 470 insertions(+), 78 deletions(-) diff --git a/project.mml b/project.mml index 7841a1957b..74afa82123 100644 --- a/project.mml +++ b/project.mml @@ -6,6 +6,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "world", "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", "Datasource": { "type": "shape", @@ -17,7 +18,9 @@ 180, 85.05112877980659 ], - "id": "world", + "properties": { + "maxzoom": 9 + }, "advanced": {} }, { @@ -25,6 +28,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "coast-poly", "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", "Datasource": { "type": "shape", @@ -36,7 +40,9 @@ 180, 85.05112877980659 ], - "id": "coast-poly", + "properties": { + "minzoom": 10 + }, "advanced": {} }, { @@ -44,6 +50,7 @@ "srs-name": "mercator", "geometry": "polygon", "class": "", + "id": "builtup", "srs": "+proj=merc +datum=WGS84 +over", "Datasource": { "type": "shape", @@ -55,7 +62,10 @@ 180, 85.05112877980659 ], - "id": "builtup", + "properties": { + "maxzoom": 9, + "minzoom": 8 + }, "advanced": {} }, { @@ -63,6 +73,7 @@ "srs-name": "WGS84", "geometry": "linestring", "class": "", + "id": "necountries", "srs": "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs", "Datasource": { "type": "shape", @@ -74,7 +85,10 @@ 180, 85.05112877980659 ], - "id": "necountries", + "properties": { + "maxzoom": 3, + "minzoom": 1 + }, "advanced": {} }, { @@ -82,6 +96,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "landcover-low-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -97,7 +112,9 @@ 180, 85.05112877980659 ], - "id": "landcover-low-zoom", + "properties": { + "maxzoom": 9 + }, "advanced": {} }, { @@ -105,6 +122,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "landcover", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -120,7 +138,9 @@ 180, 85.05112877980659 ], - "id": "landcover", + "properties": { + "minzoom": 10 + }, "advanced": {} }, { @@ -128,6 +148,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "landcover-line", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -143,7 +164,9 @@ 180, 85.05112877980659 ], - "id": "landcover-line", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -151,6 +174,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "water-lines-casing", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -166,7 +190,9 @@ 180, 85.05112877980659 ], - "id": "water-lines-casing", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -174,6 +200,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "water-lines-low-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -189,7 +216,10 @@ 180, 85.05112877980659 ], - "id": "water-lines-low-zoom", + "properties": { + "maxzoom": 11, + "minzoom": 8 + }, "advanced": {} }, { @@ -197,6 +227,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "water-areas", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -212,7 +243,9 @@ 180, 85.05112877980659 ], - "id": "water-areas", + "properties": { + "minzoom": 4 + }, "advanced": {} }, { @@ -220,6 +253,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "water-areas-overlay", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -235,7 +269,9 @@ 180, 85.05112877980659 ], - "id": "water-areas-overlay", + "properties": { + "minzoom": 10 + }, "advanced": {} }, { @@ -243,6 +279,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "water-lines", + "id": "water-lines", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -258,7 +295,9 @@ 180, 85.05112877980659 ], - "id": "water-lines", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -266,6 +305,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "dam", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -281,7 +321,9 @@ 180, 85.05112877980659 ], - "id": "dam", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -289,6 +331,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "marinas-area", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -304,7 +347,9 @@ 180, 85.05112877980659 ], - "id": "marinas-area", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -312,6 +357,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "piers-area", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -327,7 +373,9 @@ 180, 85.05112877980659 ], - "id": "piers-area", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -335,6 +383,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "piers", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -350,7 +399,9 @@ 180, 85.05112877980659 ], - "id": "piers", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -358,6 +409,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "locks", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -373,7 +425,9 @@ 180, 85.05112877980659 ], - "id": "locks", + "properties": { + "minzoom": 17 + }, "advanced": {} }, { @@ -381,6 +435,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "buildings", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -396,7 +451,9 @@ 180, 85.05112877980659 ], - "id": "buildings", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -404,6 +461,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "buildings-major", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -419,7 +477,9 @@ 180, 85.05112877980659 ], - "id": "buildings-major", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -444,7 +504,8 @@ 85.05112877980659 ], "properties": { - "group-by": "layernotnull" + "group-by": "layernotnull", + "minzoom": 12 }, "advanced": {} }, @@ -476,6 +537,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "castlewalls", + "id": "castlewalls", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -491,7 +553,9 @@ 180, 85.05112877980659 ], - "id": "castlewalls", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -499,6 +563,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "castlewalls", + "id": "castlewalls-poly", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -514,7 +579,9 @@ 180, 85.05112877980659 ], - "id": "castlewalls-poly", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -522,6 +589,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "landuse-overlay", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -537,7 +605,9 @@ 180, 85.05112877980659 ], - "id": "landuse-overlay", + "properties": { + "minzoom": 10 + }, "advanced": {} }, { @@ -545,6 +615,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "barriers", + "id": "line-barriers", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -560,7 +631,9 @@ 180, 85.05112877980659 ], - "id": "line-barriers", + "properties": { + "minzoom": 16 + }, "advanced": {} }, { @@ -568,6 +641,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "cliffs", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -583,7 +657,9 @@ 180, 85.05112877980659 ], - "id": "cliffs", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -591,6 +667,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "barriers", + "id": "area-barriers", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -606,7 +683,9 @@ 180, 85.05112877980659 ], - "id": "area-barriers", + "properties": { + "minzoom": 16 + }, "advanced": {} }, { @@ -614,6 +693,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "tree-row", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -629,7 +709,9 @@ 180, 85.05112877980659 ], - "id": "tree-row", + "properties": { + "minzoom": 16 + }, "advanced": {} }, { @@ -637,6 +719,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "ferry-routes", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -652,7 +735,9 @@ 180, 85.05112877980659 ], - "id": "ferry-routes", + "properties": { + "minzoom": 7 + }, "advanced": {} }, { @@ -660,6 +745,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "turning-circle-casing", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -675,7 +761,9 @@ 180, 85.05112877980659 ], - "id": "turning-circle-casing", + "properties": { + "minzoom": 15 + }, "advanced": {} }, { @@ -683,6 +771,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "highway-area-casing", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -698,14 +787,16 @@ 180, 85.05112877980659 ], - "id": "highway-area-casing", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { "name": "roads-casing", "srs-name": "900913", "geometry": "linestring", - "id": "roads-casing", + "class": "roads-casing", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -721,13 +812,17 @@ 180, 85.05112877980659 ], - "class": "roads-casing", + "id": "roads-casing", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { "name": "highway-area-fill", "srs-name": "900913", "class": "", + "id": "highway-area-fill", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -743,7 +838,9 @@ 180, 85.05112877980659 ], - "id": "highway-area-fill", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -751,6 +848,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "roads-fill access directions", + "id": "roads-fill", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -766,7 +864,9 @@ 180, 85.05112877980659 ], - "id": "roads-fill", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -774,6 +874,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "turning-circle-fill", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -789,7 +890,9 @@ 180, 85.05112877980659 ], - "id": "turning-circle-fill", + "properties": { + "minzoom": 15 + }, "advanced": {} }, { @@ -797,6 +900,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "aerialways", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -812,7 +916,9 @@ 180, 85.05112877980659 ], - "id": "aerialways", + "properties": { + "minzoom": 15 + }, "advanced": {} }, { @@ -820,6 +926,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "roads-low-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -835,7 +942,10 @@ 180, 85.05112877980659 ], - "id": "roads-low-zoom", + "properties": { + "maxzoom": 11, + "minzoom": 5 + }, "advanced": {} }, { @@ -843,6 +953,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "water-lines", + "id": "waterway-bridges", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -858,7 +969,9 @@ 180, 85.05112877980659 ], - "id": "waterway-bridges", + "properties": { + "minzoom": 15 + }, "advanced": {} }, { @@ -883,7 +996,8 @@ 85.05112877980659 ], "properties": { - "group-by": "layernotnull" + "group-by": "layernotnull", + "minzoom": 12 }, "advanced": {} }, @@ -892,6 +1006,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "guideways", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -907,14 +1022,16 @@ 180, 85.05112877980659 ], - "id": "guideways", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { "name": "admin-low-zoom", "srs-name": "900913", "geometry": "linestring", - "id": "admin-low-zoom", + "class": "", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -930,7 +1047,10 @@ 180, 85.05112877980659 ], - "class": "", + "id": "admin-low-zoom", + "properties": { + "maxzoom": 10 + }, "advanced": {} }, { @@ -938,6 +1058,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "admin-mid-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -953,7 +1074,10 @@ 180, 85.05112877980659 ], - "id": "admin-mid-zoom", + "properties": { + "maxzoom": 12, + "minzoom": 11 + }, "advanced": {} }, { @@ -961,6 +1085,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "admin-high-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -976,7 +1101,9 @@ 180, 85.05112877980659 ], - "id": "admin-high-zoom", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -984,6 +1111,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "power-minorline", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -999,7 +1127,9 @@ 180, 85.05112877980659 ], - "id": "power-minorline", + "properties": { + "minzoom": 16 + }, "advanced": {} }, { @@ -1007,6 +1137,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "power-line", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1022,7 +1153,9 @@ 180, 85.05112877980659 ], - "id": "power-line", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -1030,6 +1163,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "nature-reserve-boundaries", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1045,7 +1179,9 @@ 180, 85.05112877980659 ], - "id": "nature-reserve-boundaries", + "properties": { + "minzoom": 7 + }, "advanced": {} }, { @@ -1053,6 +1189,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "theme-park", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1068,7 +1205,9 @@ 180, 85.05112877980659 ], - "id": "theme-park", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1076,6 +1215,7 @@ "srs-name": "900913", "geometry": "point", "class": "country state", + "id": "placenames-large", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1091,7 +1231,9 @@ 180, 85.05112877980659 ], - "id": "placenames-large", + "properties": { + "minzoom": 2 + }, "advanced": {} }, { @@ -1099,6 +1241,7 @@ "srs-name": "WGS84", "geometry": "point", "class": "", + "id": "nepopulated", "srs": "+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs", "Datasource": { "type": "shape", @@ -1111,7 +1254,10 @@ 180, 85.05112877980659 ], - "id": "nepopulated", + "properties": { + "maxzoom": 4, + "minzoom": 3 + }, "advanced": { "encoding": "windows-1252" } @@ -1121,6 +1267,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "placenames-capital", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1136,7 +1283,10 @@ 180, 85.05112877980659 ], - "id": "placenames-capital", + "properties": { + "maxzoom": 14, + "minzoom": 5 + }, "advanced": {} }, { @@ -1144,6 +1294,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "placenames-medium", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1159,7 +1310,9 @@ 180, 85.05112877980659 ], - "id": "placenames-medium", + "properties": { + "minzoom": 6 + }, "advanced": {} }, { @@ -1167,6 +1320,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "placenames-small", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1182,7 +1336,9 @@ 180, 85.05112877980659 ], - "id": "placenames-small", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -1190,6 +1346,7 @@ "srs-name": "900913", "geometry": "point", "class": "stations", + "id": "stations", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1205,7 +1362,9 @@ 180, 85.05112877980659 ], - "id": "stations", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -1213,6 +1372,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "stations", + "id": "stations-poly", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1228,7 +1388,9 @@ 180, 85.05112877980659 ], - "id": "stations-poly", + "properties": { + "minzoom": 12 + }, "advanced": {} }, { @@ -1236,6 +1398,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "points", + "id": "amenity-points-poly", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1251,7 +1414,9 @@ 180, 85.05112877980659 ], - "id": "amenity-points-poly", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1259,6 +1424,7 @@ "srs-name": "900913", "geometry": "point", "class": "points", + "id": "amenity-points", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1274,7 +1440,9 @@ 180, 85.05112877980659 ], - "id": "amenity-points", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1282,6 +1450,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "power-towers", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1297,7 +1466,9 @@ 180, 85.05112877980659 ], - "id": "power-towers", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -1305,6 +1476,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "power-poles", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1320,7 +1492,9 @@ 180, 85.05112877980659 ], - "id": "power-poles", + "properties": { + "minzoom": 16 + }, "advanced": {} }, { @@ -1328,6 +1502,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "roads-text-ref-low-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1343,7 +1518,10 @@ 180, 85.05112877980659 ], - "id": "roads-text-ref-low-zoom", + "properties": { + "maxzoom": 12, + "minzoom": 10 + }, "advanced": {} }, { @@ -1351,6 +1529,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "junctions", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1366,7 +1545,9 @@ 180, 85.05112877980659 ], - "id": "junctions", + "properties": { + "minzoom": 11 + }, "advanced": {} }, { @@ -1374,6 +1555,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "roads-text-ref", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1389,7 +1571,9 @@ 180, 85.05112877980659 ], - "id": "roads-text-ref", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1397,6 +1581,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "roads-area-text-name", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1412,7 +1597,9 @@ 180, 85.05112877980659 ], - "id": "roads-area-text-name", + "properties": { + "minzoom": 15 + }, "advanced": {} }, { @@ -1420,6 +1607,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "roads-text-name", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1435,7 +1623,9 @@ 180, 85.05112877980659 ], - "id": "roads-text-name", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1443,6 +1633,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "paths-text-name", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1458,7 +1649,9 @@ 180, 85.05112877980659 ], - "id": "paths-text-name", + "properties": { + "minzoom": 15 + }, "advanced": {} }, { @@ -1466,6 +1659,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "text-low-zoom", + "id": "text-poly-low-zoom", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1481,7 +1675,10 @@ 180, 85.05112877980659 ], - "id": "text-poly-low-zoom", + "properties": { + "maxzoom": 9, + "minzoom": 7 + }, "advanced": {} }, { @@ -1489,6 +1686,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "text", + "id": "text-poly", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1504,7 +1702,9 @@ 180, 85.05112877980659 ], - "id": "text-poly", + "properties": { + "minzoom": 10 + }, "advanced": {} }, { @@ -1512,6 +1712,7 @@ "srs-name": "900913", "geometry": "point", "class": "text", + "id": "text", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1527,7 +1728,9 @@ 180, 85.05112877980659 ], - "id": "text", + "properties": { + "minzoom": 10 + }, "advanced": {} }, { @@ -1535,6 +1738,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "", + "id": "building-text", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1550,7 +1754,9 @@ 180, 85.05112877980659 ], - "id": "building-text", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -1558,6 +1764,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "interpolation", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1573,7 +1780,9 @@ 180, 85.05112877980659 ], - "id": "interpolation", + "properties": { + "minzoom": 17 + }, "advanced": {} }, { @@ -1581,6 +1790,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "housenumbers", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1596,7 +1806,9 @@ 180, 85.05112877980659 ], - "id": "housenumbers", + "properties": { + "minzoom": 17 + }, "advanced": {} }, { @@ -1604,6 +1816,7 @@ "srs-name": "900913", "geometry": "point", "class": "", + "id": "housenames", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1619,7 +1832,9 @@ 180, 85.05112877980659 ], - "id": "housenames", + "properties": { + "minzoom": 17 + }, "advanced": {} }, { @@ -1627,6 +1842,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "water-lines-text", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1642,7 +1858,9 @@ 180, 85.05112877980659 ], - "id": "water-lines-text", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1650,6 +1868,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "ferry-routes-text", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1665,7 +1884,9 @@ 180, 85.05112877980659 ], - "id": "ferry-routes-text", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1673,6 +1894,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "admin-text", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1688,7 +1910,9 @@ 180, 85.05112877980659 ], - "id": "admin-text", + "properties": { + "minzoom": 16 + }, "advanced": {} }, { @@ -1696,6 +1920,7 @@ "srs-name": "900913", "geometry": "linestring", "class": "", + "id": "nature-reserve-text", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1711,7 +1936,9 @@ 180, 85.05112877980659 ], - "id": "nature-reserve-text", + "properties": { + "minzoom": 13 + }, "advanced": {} }, { @@ -1719,6 +1946,7 @@ "srs-name": "900913", "geometry": "point", "class": "amenity-low-priority", + "id": "amenity-low-priority", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1734,7 +1962,9 @@ 180, 85.05112877980659 ], - "id": "amenity-low-priority", + "properties": { + "minzoom": 14 + }, "advanced": {} }, { @@ -1742,6 +1972,7 @@ "srs-name": "900913", "geometry": "polygon", "class": "amenity-low-priority", + "id": "amenity-low-priority-poly", "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", "Datasource": { "extent": "-20037508,-20037508,20037508,20037508", @@ -1757,7 +1988,9 @@ 180, 85.05112877980659 ], - "id": "amenity-low-priority-poly", + "properties": { + "minzoom": 14 + }, "advanced": {} } ], diff --git a/project.yaml b/project.yaml index e67e80d8ba..1186dfc9d6 100644 --- a/project.yaml +++ b/project.yaml @@ -62,6 +62,8 @@ Layer: file: "data/simplified-land-polygons-complete-3857/simplified_land_polygons.shp" type: "shape" advanced: {} + properties: + maxzoom: 9 - id: "coast-poly" name: "coast-poly" class: "" @@ -70,6 +72,8 @@ Layer: Datasource: file: "data/land-polygons-split-3857/land_polygons.shp" type: "shape" + properties: + minzoom: 10 advanced: {} - id: "builtup" name: "builtup" @@ -81,6 +85,9 @@ Layer: Datasource: file: "data/world_boundaries/builtup_area.shp" type: "shape" + properties: + minzoom: 8 + maxzoom: 9 advanced: {} - id: "necountries" name: "necountries" @@ -90,6 +97,9 @@ Layer: Datasource: file: "data/ne_110m_admin_0_boundary_lines_land/ne_110m_admin_0_boundary_lines_land.shp" type: "shape" + properties: + minzoom: 1 + maxzoom: 3 advanced: {} - id: "landcover-low-zoom" name: "landcover-low-zoom" @@ -115,6 +125,8 @@ Layer: ORDER BY z_order, way_area DESC ) AS features ) AS landcover_low_zoom + properties: + maxzoom: 9 advanced: {} - id: "landcover" name: "landcover" @@ -156,6 +168,8 @@ Layer: ORDER BY z_order, way_area DESC ) AS landcover ) AS features + properties: + minzoom: 10 advanced: {} - id: "landcover-line" name: "landcover-line" @@ -171,6 +185,8 @@ Layer: WHERE man_made = 'cutline' ) AS landcover_line advanced: {} + properties: + minzoom: 14 - id: "water-lines-casing" name: "water-lines-casing" class: "" @@ -185,6 +201,8 @@ Layer: FROM planet_osm_line WHERE waterway IN ('stream', 'drain', 'ditch') ) AS water_lines_casing + properties: + minzoom: 13 advanced: {} - id: "water-lines-low-zoom" name: "water-lines-low-zoom" @@ -198,6 +216,9 @@ Layer: FROM planet_osm_line WHERE waterway = 'river' ) AS water_lines_low_zoom + properties: + minzoom: 8 + maxzoom: 11 advanced: {} - id: "water-areas" name: "water-areas" @@ -218,6 +239,8 @@ Layer: AND way_area/(!pixel_width!*!pixel_height!) > 0.01 ORDER BY z_order, way_area DESC ) AS water_areas + properties: + minzoom: 4 advanced: {} - id: "water-areas-overlay" name: "water-areas-overlay" @@ -233,6 +256,8 @@ Layer: WHERE "natural" IN ('marsh', 'wetland') AND building IS NULL ORDER BY z_order, way_area DESC ) AS water_areas_overlay + properties: + minzoom: 10 advanced: {} - id: "water-lines" name: "water-lines" @@ -251,6 +276,8 @@ Layer: AND (bridge IS NULL OR bridge NOT IN ('yes', 'aqueduct')) ORDER BY z_order ) AS water_lines + properties: + minzoom: 12 advanced: {} - id: "dam" name: "dam" @@ -264,6 +291,8 @@ Layer: FROM planet_osm_line WHERE waterway = 'dam' ) AS dam + properties: + minzoom: 13 advanced: {} - id: "marinas-area" name: "marinas-area" @@ -278,6 +307,8 @@ Layer: FROM planet_osm_polygon WHERE leisure = 'marina' ) AS marinas_area + properties: + minzoom: 14 advanced: {} - id: "piers-area" name: "piers-area" @@ -292,6 +323,8 @@ Layer: FROM planet_osm_polygon WHERE man_made IN ('pier', 'breakwater', 'groyne') ) AS piers_area + properties: + minzoom: 12 advanced: {} - id: "piers" name: "piers" @@ -306,6 +339,8 @@ Layer: FROM planet_osm_line WHERE man_made IN ('pier', 'breakwater', 'groyne') ) AS piers + properties: + minzoom: 12 advanced: {} - id: "locks" name: "locks" @@ -320,6 +355,8 @@ Layer: FROM planet_osm_point WHERE waterway = 'lock_gate' ) AS locks + properties: + minzoom: 17 advanced: {} - id: "buildings" name: "buildings" @@ -336,6 +373,8 @@ Layer: AND building != 'no' ORDER BY z_order, way_area DESC ) AS buildings + properties: + minzoom: 12 advanced: {} - id: "buildings-major" name: "buildings-major" @@ -352,6 +391,8 @@ Layer: AND (aeroway = 'terminal' OR amenity = 'place_of_worship') ORDER BY z_order,way_area DESC) AS buildings_major + properties: + minzoom: 12 advanced: {} - id: "tunnels" name: "tunnels" @@ -451,6 +492,7 @@ Layer: ) AS tunnels properties: group-by: "layernotnull" + minzoom: 12 advanced: {} - id: "citywalls" name: "citywalls" @@ -479,6 +521,8 @@ Layer: FROM planet_osm_line WHERE historic = 'castle_walls' ) AS castlewalls + properties: + minzoom: 14 advanced: {} - id: "castlewalls-poly" name: "castlewalls-poly" @@ -493,6 +537,8 @@ Layer: FROM planet_osm_polygon WHERE historic = 'castle_walls' ) AS castlewalls_poly + properties: + minzoom: 14 advanced: {} - id: "landuse-overlay" name: "landuse-overlay" @@ -507,6 +553,8 @@ Layer: FROM planet_osm_polygon WHERE (landuse = 'military') AND building IS NULL ) AS landuse_overlay + properties: + minzoom: 10 advanced: {} - id: "line-barriers" name: "line-barriers" @@ -521,6 +569,8 @@ Layer: FROM planet_osm_line WHERE barrier IS NOT NULL ) AS line_barriers + properties: + minzoom: 16 advanced: {} - id: "cliffs" name: "cliffs" @@ -535,6 +585,8 @@ Layer: FROM planet_osm_line WHERE "natural" = 'cliff' OR man_made = 'embankment' ) AS cliffs + properties: + minzoom: 13 advanced: {} - id: "area-barriers" name: "area-barriers" @@ -549,6 +601,8 @@ Layer: FROM planet_osm_polygon WHERE barrier IS NOT NULL ) AS area_barriers + properties: + minzoom: 16 advanced: {} - id: "tree-row" name: "tree-row" @@ -563,6 +617,8 @@ Layer: FROM planet_osm_line WHERE "natural" = 'tree_row' ) AS tree_row + properties: + minzoom: 16 advanced: {} - id: "ferry-routes" name: "ferry-routes" @@ -577,6 +633,8 @@ Layer: FROM planet_osm_line WHERE route = 'ferry' ) AS ferry_routes + properties: + minzoom: 7 advanced: {} - id: "turning-circle-casing" name: "turning-circle-casing" @@ -606,6 +664,8 @@ Layer: OR p.highway = 'turning_loop' ORDER BY p.way, v.prio ) AS turning_circle_casing + properties: + minzoom: 15 advanced: {} - id: "highway-area-casing" name: "highway-area-casing" @@ -626,6 +686,8 @@ Layer: OR railway IN ('platform') ORDER BY z_order, way_area DESC ) AS highway_area_casing + properties: + minzoom: 14 advanced: {} - name: "roads-casing" id: "roads-casing" @@ -718,6 +780,8 @@ Layer: ) AS features ORDER BY prio ) AS roads_casing + properties: + minzoom: 12 advanced: {} - id: "highway-area-fill" name: "highway-area-fill" @@ -740,6 +804,8 @@ Layer: OR aeroway IN ('runway', 'taxiway', 'helipad') ORDER BY z_order, way_area desc ) AS highway_area_fill + properties: + minzoom: 14 advanced: {} - id: "roads-fill" name: "roads-fill" @@ -844,6 +910,8 @@ Layer: ) ) AS features ORDER BY prio, case when access in ('no', 'private') then 0 when access in ('destination') then 1 else 2 end ) AS roads_fill + properties: + minzoom: 12 advanced: {} - id: "turning-circle-fill" name: "turning-circle-fill" @@ -872,6 +940,8 @@ Layer: WHERE p.highway = 'turning_circle' OR p.highway = 'turning_loop' ORDER BY p.way, v.prio ) AS turning_circle_fill + properties: + minzoom: 15 advanced: {} - id: "aerialways" name: "aerialways" @@ -882,6 +952,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way, aerialway FROM planet_osm_line WHERE aerialway IS NOT NULL) AS aerialways + properties: + minzoom: 15 advanced: {} - id: "roads-low-zoom" name: "roads-low-zoom" @@ -897,6 +969,9 @@ Layer: OR (railway IS NOT NULL AND railway != 'preserved' AND (service IS NULL OR service NOT IN ('spur', 'siding', 'yard'))) ORDER BY z_order ) AS roads_low_zoom + properties: + minzoom: 5 + maxzoom: 11 advanced: {} - id: "waterway-bridges" name: "waterway-bridges" @@ -907,6 +982,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way, waterway, name, CASE WHEN tunnel IN ('yes', 'culvert') THEN 'yes' ELSE 'no' END AS int_tunnel, 'yes' AS bridge FROM planet_osm_line WHERE waterway IN ('river', 'canal', 'derelict_canal', 'stream', 'drain', 'ditch', 'wadi') AND bridge IN ('yes', 'aqueduct') ORDER BY z_order) AS waterway_bridges + properties: + minzoom: 15 advanced: {} - id: "bridges" name: "bridges" @@ -1007,6 +1084,7 @@ Layer: ) AS bridges properties: group-by: "layernotnull" + minzoom: 12 advanced: {} - id: "guideways" name: "guideways" @@ -1017,6 +1095,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way FROM planet_osm_line WHERE highway = 'bus_guideway' AND (tunnel IS NULL OR tunnel != 'yes')) AS guideways + properties: + minzoom: 13 advanced: {} - name: "admin-low-zoom" id: "admin-low-zoom" @@ -1032,6 +1112,8 @@ Layer: AND admin_level IN ('0', '1', '2', '3', '4') ORDER BY admin_level DESC ) AS admin_low_zoom + properties: + maxzoom: 10 advanced: {} - id: "admin-mid-zoom" name: "admin-mid-zoom" @@ -1047,6 +1129,9 @@ Layer: AND admin_level IN ('0', '1', '2', '3', '4', '5', '6', '7', '8') ORDER BY admin_level DESC ) AS admin_mid_zoom + properties: + minzoom: 11 + maxzoom: 12 advanced: {} - id: "admin-high-zoom" name: "admin-high-zoom" @@ -1062,6 +1147,8 @@ Layer: AND admin_level IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10') ORDER BY admin_level DESC ) AS admin_high_zoom + properties: + minzoom: 13 advanced: {} - id: "power-minorline" name: "power-minorline" @@ -1072,6 +1159,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way FROM planet_osm_line WHERE "power" = 'minor_line') AS power_minorline + properties: + minzoom: 16 advanced: {} - id: "power-line" name: "power-line" @@ -1082,6 +1171,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way FROM planet_osm_line WHERE "power" = 'line') AS power_line + properties: + minzoom: 14 advanced: {} - id: "nature-reserve-boundaries" name: "nature-reserve-boundaries" @@ -1092,6 +1183,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way, way_area, name, boundary, way_area/(!pixel_width!*!pixel_height!) AS way_pixels FROM planet_osm_polygon WHERE (boundary = 'national_park' OR leisure = 'nature_reserve') AND building IS NULL) AS national_park_boundaries + properties: + minzoom: 7 advanced: {} - id: "theme-park" name: "theme-park" @@ -1102,6 +1195,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way, name, tourism FROM planet_osm_polygon WHERE tourism = 'theme_park') AS theme_park + properties: + minzoom: 13 advanced: {} - id: "placenames-large" name: "placenames-large" @@ -1115,6 +1210,8 @@ Layer: FROM planet_osm_polygon WHERE boundary = 'administrative' AND admin_level IN ('2', '4') ) AS placenames_large + properties: + minzoom: 2 advanced: {} - id: "nepopulated" name: "nepopulated" @@ -1125,6 +1222,9 @@ Layer: file: "data/ne_10m_populated_places/ne_10m_populated_places_fixed.shp" type: "shape" encoding: "windows-1252" + properties: + minzoom: 3 + maxzoom: 4 advanced: encoding: "windows-1252" - id: "placenames-capital" @@ -1139,6 +1239,9 @@ Layer: FROM planet_osm_point WHERE place IN ('city', 'town') AND capital = 'yes' ) AS placenames_capital + properties: + minzoom: 5 + maxzoom: 14 advanced: {} - id: "placenames-medium" name: "placenames-medium" @@ -1153,6 +1256,8 @@ Layer: WHERE place IN ('city', 'town') AND (capital IS NULL OR capital != 'yes') ) AS placenames_medium + properties: + minzoom: 6 advanced: {} - id: "placenames-small" name: "placenames-small" @@ -1166,6 +1271,8 @@ Layer: FROM planet_osm_point WHERE place IN ('suburb', 'village', 'hamlet', 'neighbourhood', 'locality', 'isolated_dwelling', 'farm') ) AS placenames_small + properties: + minzoom: 12 advanced: {} - id: "stations" class: "stations" @@ -1180,6 +1287,8 @@ Layer: WHERE railway IN ('station', 'halt', 'tram_stop', 'subway_entrance') OR aerialway = 'station' ) AS stations + properties: + minzoom: 12 advanced: {} - id: "stations-poly" name: "stations-poly" @@ -1194,6 +1303,8 @@ Layer: WHERE railway IN ('station', 'halt', 'tram_stop') OR aerialway = 'station' ) AS stations_poly + properties: + minzoom: 12 advanced: {} - id: "amenity-points-poly" name: "amenity-points-poly" @@ -1216,6 +1327,8 @@ Layer: OR "natural" IN ('peak', 'volcano', 'saddle', 'spring', 'tree') OR (power = 'generator' AND ("generator:source" = 'wind' OR power_source = 'wind')) ORDER BY way_area desc ) AS amenity_points_poly + properties: + minzoom: 13 advanced: {} - id: "amenity-points" name: "amenity-points" @@ -1240,6 +1353,8 @@ Layer: OR "natural" IN ('peak', 'volcano', 'saddle', 'spring', 'tree', 'cave_entrance') OR (power = 'generator' AND ("generator:source" = 'wind' OR power_source = 'wind')) ) AS amenity_points + properties: + minzoom: 13 advanced: {} - id: "power-towers" name: "power-towers" @@ -1250,6 +1365,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way FROM planet_osm_point WHERE power = 'tower') AS power_towers + properties: + minzoom: 14 advanced: {} - id: "power-poles" name: "power-poles" @@ -1260,6 +1377,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way FROM planet_osm_point WHERE power = 'pole') AS power_poles + properties: + minzoom: 16 advanced: {} - id: "roads-text-ref-low-zoom" name: "roads-text-ref-low-zoom" @@ -1285,6 +1404,9 @@ Layer: AND ref IS NOT NULL ) AS p) AS q WHERE height <= 4 AND width <= 11) AS roads_text_ref_low_zoom + properties: + minzoom: 10 + maxzoom: 12 advanced: {} - id: "junctions" name: "junctions" @@ -1298,6 +1420,8 @@ Layer: FROM planet_osm_point WHERE highway = 'motorway_junction' OR highway = 'traffic_signals' OR junction = 'yes' ) AS junctions + properties: + minzoom: 11 advanced: {} - id: "roads-text-ref" name: "roads-text-ref" @@ -1323,6 +1447,8 @@ Layer: AND ref IS NOT NULL ) AS p) AS q WHERE height <= 4 AND width <= 11) AS roads_text_ref + properties: + minzoom: 13 advanced: {} - id: "roads-area-text-name" name: "roads-area-text-name" @@ -1336,6 +1462,8 @@ Layer: FROM planet_osm_polygon WHERE highway IN ('residential', 'unclassified', 'pedestrian', 'service', 'footway', 'cycleway', 'living_street', 'track', 'path', 'platform') OR railway IN ('platform') AND name IS NOT NULL ) AS roads_area_text_name + properties: + minzoom: 15 advanced: {} - id: "roads-text-name" name: "roads-text-name" @@ -1353,6 +1481,8 @@ Layer: WHERE highway IN ('motorway', 'motorway_link', 'trunk', 'trunk_link', 'primary', 'primary_link', 'secondary', 'secondary_link', 'tertiary', 'tertiary_link', 'residential', 'unclassified', 'road', 'service', 'pedestrian', 'raceway', 'living_street', 'construction', 'proposed') AND name IS NOT NULL ) AS roads_text_name + properties: + minzoom: 13 advanced: {} - id: "paths-text-name" name: "paths-text-name" @@ -1367,6 +1497,8 @@ Layer: WHERE highway IN ('bridleway', 'footway', 'cycleway', 'path', 'track', 'steps') AND name IS NOT NULL ) AS paths_text_name + properties: + minzoom: 15 advanced: {} - id: "text-poly-low-zoom" name: "text-poly-low-zoom" @@ -1388,6 +1520,9 @@ Layer: AND building IS NULL ORDER BY way_area DESC ) AS text_poly_low_zoom + properties: + minzoom: 7 + maxzoom: 9 advanced: {} - id: "text-poly" name: "text-poly" @@ -1415,6 +1550,8 @@ Layer: OR highway IN ('services', 'rest_area') OR boundary = 'national_park' ORDER BY way_area desc ) AS text_poly + properties: + minzoom: 10 advanced: {} - id: "text" name: "text" @@ -1443,6 +1580,8 @@ Layer: OR highway IN ('bus_stop', 'services', 'rest_area') OR boundary = 'national_park' ) AS text + properties: + minzoom: 10 advanced: {} - id: "building-text" name: "building-text" @@ -1457,6 +1596,8 @@ Layer: WHERE building IS NOT NULL AND building NOT IN ('no', 'station', 'supermarket') ORDER BY way_area DESC ) AS building_text + properties: + minzoom: 14 advanced: {} - id: "interpolation" name: "interpolation" @@ -1469,6 +1610,8 @@ Layer: (SELECT way FROM planet_osm_line WHERE "addr:interpolation" IS NOT NULL) AS interpolation + properties: + minzoom: 17 advanced: {} - id: "housenumbers" name: "housenumbers" @@ -1483,6 +1626,8 @@ Layer: SELECT way,"addr:housenumber", NULL AS way_area FROM planet_osm_point WHERE "addr:housenumber" IS NOT NULL ORDER BY way_area DESC ) AS housenumbers + properties: + minzoom: 17 advanced: {} - id: "housenames" name: "housenames" @@ -1497,6 +1642,8 @@ Layer: SELECT way,"addr:housename", NULL AS way_area FROM planet_osm_point WHERE "addr:housename" IS NOT NULL ORDER BY way_area DESC ) AS housenames + properties: + minzoom: 17 advanced: {} - id: "water-lines-text" name: "water-lines-text" @@ -1511,6 +1658,8 @@ Layer: WHERE waterway IN ('weir', 'river', 'canal', 'derelict_canal', 'stream', 'drain', 'ditch', 'wadi') ORDER BY z_order ) AS water_lines_text + properties: + minzoom: 13 advanced: {} - id: "ferry-routes-text" name: "ferry-routes-text" @@ -1525,6 +1674,8 @@ Layer: FROM planet_osm_line WHERE route = 'ferry' ) AS ferry_routes_text + properties: + minzoom: 13 advanced: {} - id: "admin-text" name: "admin-text" @@ -1535,6 +1686,8 @@ Layer: <<: *osm2pgsql table: |2- (SELECT way, name, admin_level FROM planet_osm_polygon WHERE "boundary" = 'administrative' AND admin_level IN ('0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10')) AS admin_text + properties: + minzoom: 16 advanced: {} - id: "nature-reserve-text" name: "nature-reserve-text" @@ -1546,6 +1699,8 @@ Layer: table: |2- (SELECT way, name, way_area/(!pixel_width!*!pixel_height!) AS way_pixels FROM planet_osm_polygon WHERE "boundary" = 'national_park' OR leisure = 'nature_reserve') AS nature_reserve_text + properties: + minzoom: 13 advanced: {} - id: "amenity-low-priority" name: "amenity-low-priority" @@ -1561,6 +1716,8 @@ Layer: OR highway IN ('mini_roundabout') OR railway = 'level_crossing' ) AS amenity_low_priority + properties: + minzoom: 14 advanced: {} - id: "amenity-low-priority-poly" name: "amenity-low-priority-poly" @@ -1576,4 +1733,6 @@ Layer: OR highway IN ('mini_roundabout') OR railway = 'level_crossing' ) AS amenity_low_priority_poly + properties: + minzoom: 14 advanced: {}