{"styles": [{"id": "road_labels_3", "layer": "tilezen_lines", "when": ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.Street.Category3"], ["!", ["ref", "Is.RailFerry"]], ["ref", "Street.Category3.Label.Display.Enabled"]], "technique": "text", "description": "Street Category 3 Labels", "attr": {"category": "road3-labels", "minZoomLevel": ["ref", "Street.Category3.MinZoomLevel"], "margin": ["ref", "Default.Margin"], "persisting-margin-reducing": ["ref", "Default.PersistingMargin.Reducing"], "font": ["ref", "Default.Font"], "shape": "line", "vertical-alignment": "Dynamic", "replaceable": true, "new-label-spread-frames": 10, "fade-time": 0.3, "far-threshold": 0.85, "far-threshold-range": 0.015, "polyline-padding-px": 2, "dual-language-leading-space": ["ppi-scale", ["ref", "Label.DualLanguage.Leading"], ["ref", "ScalePPI.Labels"]], "softdepth": ["ref", "SoftDepth.Threshold"], "anchor-point-density": ["step", ["zoom"], 5, 8, 20, 16, 40], "line-width": ["case", ["ref", "Is.Unpaved"], ["world-scale", ["ref", "Street.Category3.Unpaved.Width"]], ["ref", "Is.Ramp"], ["world-scale", ["ref", "Street.Category3.Ramp.Width"]], ["ref", "Internal.Street.Category3.LineWidthZoom"]], "color": ["case", ["ref", "Is.Unpaved"], ["ref", "Street.Category3.Label.Unpaved.Color"], ["ref", "Is.Toll.Enabled"], ["ref", "Street.Category3.Label.Toll.Color"], ["ref", "Street.Category3.Label.Color"]], "outline-color": ["case", ["ref", "Is.Unpaved"], ["ref", "Street.Category3.Label.Unpaved.Outline.Color"], ["ref", "Is.Toll.Enabled"], ["ref", "Street.Category3.Label.Toll.Outline.Color"], ["ref", "Street.Category3.Label.Outline.Color"]], "size": ["case", ["ref", "Is.Ramp"], ["ppi-scale", ["ref", "Street.Category3.Label.Ramp.Size"], ["ref", "ScalePPI.Labels"]], ["ppi-scale", ["ref", "Street.Category3.Label.Size"], ["ref", "ScalePPI.Labels"]]], "outline-width": ["ppi-scale", ["ref", "Street.Category3.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], "case-conversion": ["ref", "Street.Category3.Label.Variant"], "min-world-line-length": ["ref", "Street.Label.MinWorldLineLength"]}}, {"id": "roads_3", "layer": "tilezen_lines", "when": ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.Street.Category3"], ["!", ["ref", "Is.Japan.HasPolygonalRoads"]], ["!", ["ref", "Is.RailFerry"]], ["!", ["ref", "Is.Ski.Downhill"]]], "technique": "line", "description": "Street Category 3 Line", "attr": {"category": ["ref", "Internal.Street.Category3.RenderPass"], "minZoomLevel": ["ref", "Street.Category3.MinZoomLevel"], "maxZoomLevel": ["case", ["all", ["==", ["ref", "Is.PolygonalRoads.VisibilityCheck"], true], ["==", ["ref", "Is.HasPolygonalRoads"], true]], 17, null], "lighting-enabled": ["ref", "Lighting.Enabled"], "ambient": ["ref", "Street.Category3.Ambient.Factor"], "diffuse": ["ref", "Street.Category3.Diffuse.Factor"], "alpha-blend-type": ["ref", "Alpha.Blend.Type"], "cap": ["case", ["ref", "Is.UnderConstruction"], "butt", null], "color": ["ref", "Internal.Street.Category3.Color"], "dash-gap-color": ["case", ["ref", "Is.UnderConstruction"], ["ref", "Transparent.Color"], ["ref", "Is.OneWay"], ["ref", "Internal.Street.Category3.ArrowColor"], null], "width": ["world-scale", ["ref", "Internal.Street.Category3.RoadWidth"]], "dasharray": ["case", ["ref", "Is.UnderConstruction"], ["make-vector", ["world-discrete-scale", ["ref", "Street.Category3.Construction.Gap.Length"]], ["world-discrete-scale", ["ref", "Street.Category3.Construction.Dash.Length"]], 0, 0], ["all", ["ref", "Is.OneWay"], ["ref", "Street.Arrow.Enabled"]], ["ref", "Internal.Street.Category3.ArrowDashArray"], null], "dash-image": ["case", ["all", ["ref", "Is.OneWay"], ["ref", "Street.Arrow.Enabled"], ["!", ["ref", "Is.UnderConstruction"]]], ["ref", "Street.Arrow.Asset"], null], "softdepth": ["ref", "SoftDepth.Threshold"]}}, {"id": "road_outlines_3", "layer": "tilezen_lines", "when": ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.Street.Category3"], ["!", ["ref", "Is.Japan.HasPolygonalRoads"]], ["!", ["ref", "Is.RailFerry"]], ["!", ["ref", "Is.Ski.Downhill"]]], "technique": "line", "description": "Street Category 3 Outline", "attr": {"category": ["case", ["ref", "Is.Tunnel"], "tunnel-outline-3", ["any", ["ref", "Is.Not.RoadZLevel"], ["==", ["get", "source"], "ipc"], ["<", ["get", "$storage-level"], 14]], ["case", ["ref", "Is.Bridge"], "bridge-outline-3", ["ref", "Is.Unpaved"], "unpaved-outline-3", ["ref", "Is.Ramp"], "ramp-outline-3", "road-outline-3"], ["all", ["ref", "Is.Unpaved"], ["<=", ["get", "z_level"], -1]], "unpaved-outline-3--1", ["all", ["ref", "Is.Unpaved"], ["==", ["get", "z_level"], 0]], "unpaved-outline-3-0", ["all", ["ref", "Is.Unpaved"], ["==", ["get", "z_level"], 1]], "unpaved-outline-3-1", ["all", ["ref", "Is.Unpaved"], [">=", ["get", "z_level"], 2]], "unpaved-outline-3-2", ["all", ["ref", "Is.Ramp"], ["<=", ["get", "z_level"], -1]], "ramp-outline-3--1", ["all", ["ref", "Is.Ramp"], ["==", ["get", "z_level"], 0]], "ramp-outline-3-0", ["all", ["ref", "Is.Ramp"], ["==", ["get", "z_level"], 1]], "ramp-outline-3-1", ["all", ["ref", "Is.Ramp"], [">=", ["get", "z_level"], 2]], "ramp-outline-3-2", ["<=", ["get", "z_level"], -1], "road-outline-3--1", ["==", ["get", "z_level"], 0], "road-outline-3-0", ["==", ["get", "z_level"], 1], "road-outline-3-1", [">=", ["get", "z_level"], 2], "road-outline-3-2", "road-outline-3"], "minZoomLevel": ["ref", "Street.Category3.MinZoomLevel"], "maxZoomLevel": ["case", ["all", ["==", ["ref", "Is.PolygonalRoads.VisibilityCheck"], true], ["==", ["ref", "Is.HasPolygonalRoads"], true]], 17, null], "lighting-enabled": ["ref", "Lighting.Enabled"], "ambient": ["ref", "Street.Category3.Ambient.Factor"], "diffuse": ["ref", "Street.Category3.Diffuse.Factor"], "alpha-blend-type": ["ref", "Alpha.Blend.Type"], "cap": ["case", ["any", ["!=", ["get", "z_level"], 0], ["ref", "Is.UnderConstruction"], ["ref", "Is.Bridge"]], "butt", null], "color": ["case", ["all", ["ref", "Is.Toll.Enabled"], ["ref", "Is.Tunnel"]], ["ref", "Street.Category3.TollTunnel.Outline.Color"], ["ref", "Is.Tunnel"], ["ref", "Street.Category3.Tunnel.Outline.Color"], ["ref", "Is.Unpaved"], ["ref", "Street.Category3.Unpaved.Outline.Color"], ["ref", "Is.Toll.Enabled"], ["ref", "Street.Category3.Toll.Outline.Color"], ["ref", "Street.Category3.Outline.Color"]], "dash-gap-color": ["case", ["all", ["ref", "Is.Tunnel"], ["!", ["ref", "Is.UnderConstruction"]]], "#00000000", ["ref", "Is.UnderConstruction"], ["ref", "Transparent.Color"], null], "width": ["case", ["ref", "Is.Unpaved"], ["case", ["<=", ["ref", "Street.Category3.Unpaved.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Street.Category3.Unpaved.Outline.Width"]], ["ref", "Street.Category3.Unpaved.Width"]]]], ["ref", "Is.Ramp"], ["case", ["<=", ["ref", "Street.Category3.Ramp.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Street.Category3.Ramp.Outline.Width"]], ["ref", "Street.Category3.Ramp.Width"]]]], ["case", ["<=", ["ref", "Street.Category3.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Street.Category3.Outline.Width"]], ["ref", "Street.Category3.Width"]]]]], "dasharray": ["case", ["all", ["ref", "Is.Tunnel"], ["!", ["ref", "Is.UnderConstruction"]]], ["ref", "Internal.Street.Tunnel.DashArray"], ["ref", "Is.UnderConstruction"], ["make-vector", ["world-discrete-scale", ["ref", "Street.Category3.Construction.Gap.Length"]], ["world-discrete-scale", ["ref", "Street.Category3.Construction.Dash.Length"]], 0, 0], null], "softdepth": ["ref", "SoftDepth.Threshold"]}}, {"id": "bridge_extra_outlines_3", "layer": "tilezen_lines", "when": ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.Street.Category3"], ["!", ["ref", "Is.Japan.HasPolygonalRoads"]], ["ref", "Is.Bridge"], ["!", ["ref", "Is.RailFerry"]]], "technique": "line", "description": "Street Category 3 Bridge Extra Outline", "attr": {"category": ["case", ["any", ["ref", "Is.Not.RoadZLevel"], ["==", ["get", "source"], "ipc"], ["<", ["get", "$storage-level"], 14]], "bridge-outline-3-extra", ["<=", ["get", "z_level"], -1], "bridge-outline-3-extra--1", ["==", ["get", "z_level"], 0], "bridge-outline-3-extra-0", ["==", ["get", "z_level"], 1], "bridge-outline-3-extra-1", [">=", ["get", "z_level"], 2], "bridge-outline-3-extra-2", "bridge-outline-3-extra"], "minZoomLevel": ["ref", "Street.Category3.MinZoomLevel"], "maxZoomLevel": ["case", ["all", ["==", ["ref", "Is.PolygonalRoads.VisibilityCheck"], true], ["==", ["ref", "Is.HasPolygonalRoads"], true]], 17, null], "lighting-enabled": ["ref", "Lighting.Enabled"], "ambient": ["ref", "Street.Category3.Ambient.Factor"], "diffuse": ["ref", "Street.Category3.Diffuse.Factor"], "alpha-blend-type": ["ref", "Alpha.Blend.Type"], "cap": "butt", "color": ["case", ["ref", "Is.Toll.Enabled"], ["ref", "Street.Category3.TollBridge.Color"], ["ref", "Street.Category3.Bridge.Color"]], "dash-gap-color": ["ref", "Transparent.Color"], "width": ["case", ["ref", "Is.Ramp"], ["case", ["<=", ["ref", "Street.Category3.Ramp.Outline.Width"], 0], 0, ["world-scale", ["+", ["+", ["*", 2, ["ref", "Street.Category3.Bridge.Outline.Width"]], ["*", 2, ["ref", "Street.Category3.Ramp.Outline.Width"]]], ["ref", "Street.Category3.Ramp.Width"]]]], ["case", ["<=", ["ref", "Street.Category3.Outline.Width"], 0], 0, ["world-scale", ["+", ["+", ["*", 2, ["ref", "Street.Category3.Bridge.Outline.Width"]], ["*", 2, ["ref", "Street.Category3.Outline.Width"]]], ["ref", "Street.Category3.Width"]]]]], "dasharray": ["case", ["ref", "Is.UnderConstruction"], ["make-vector", ["world-discrete-scale", ["ref", "Street.Category3.Construction.Gap.Length"]], ["world-discrete-scale", ["ref", "Street.Category3.Construction.Dash.Length"]], 0, 0], null], "softdepth": ["ref", "SoftDepth.Threshold"]}}]}