{"styles": [{"id": "rail_labels", "layer": "tilezen_lines", "when": ["any", ["all", ["ref", "Is.Rail.Layer"], ["ref", "Is.RailLabel"], ["ref", "Rail.Label.Display.Enabled"]], ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.RailFerry"], ["ref", "Rail.Label.Display.Enabled"]]], "technique": "text", "description": "Railway labels", "attr": {"category": ["case", ["ref", "Is.Chairlift"], "chairlift-labels", "rail-labels"], "margin": ["ref", "Default.Margin"], "persisting-margin-reducing": ["ref", "Default.PersistingMargin.Reducing"], "font": ["ref", "Default.Font"], "shape": "line", "vertical-alignment": "Center", "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"], "size": ["case", ["ref", "Is.Chairlift"], ["ppi-scale", ["ref", "Chairlift.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ppi-scale", ["ref", "Rail.Label.Size"], ["ref", "ScalePPI.Labels"]]], "outline-width": ["case", ["ref", "Is.Chairlift"], ["ppi-scale", ["ref", "Chairlift.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ppi-scale", ["ref", "Rail.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]]], "color": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Label.Color"], ["ref", "Rail.Label.Color"]], "outline-color": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Label.Outline.Color"], ["ref", "Rail.Label.Outline.Color"]], "case-conversion": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Label.Variant"], ["ref", "Rail.Label.Variant"]]}}, {"id": "rail_lines", "layer": "tilezen_lines", "when": ["any", ["ref", "Is.Rail.Layer"], ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.RailFerry"]]], "technique": "line", "description": "Railway Line", "attr": {"category": ["case", ["ref", "Is.Chairlift"], "chairlift", "rail"], "lighting-enabled": ["ref", "Lighting.Enabled"], "ambient": ["ref", "Rail.Line.Ambient.Factor"], "diffuse": ["ref", "Rail.Line.Diffuse.Factor"], "alpha-blend-type": ["ref", "Alpha.Blend.Type"], "cap": ["case", ["ref", "Is.Chairlift"], "round", "butt"], "color": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Line.Color"], ["ref", "Rail.Line.Color"]], "dash-gap-color": ["case", ["any", ["ref", "Is.Rail"], ["ref", "Is.RailFerry"]], ["ref", "Rail.SecondLine.Color"], null], "width": ["case", ["ref", "Is.Chairlift"], ["world-scale", ["ref", "Chairlift.Line.Width"]], ["world-scale", ["ref", "Rail.Line.Width"]]], "dasharray": ["case", ["any", ["ref", "Is.Rail"], ["ref", "Is.RailFerry"]], ["make-vector", ["world-discrete-scale", ["ref", "Rail.Line.Gap.Length"]], ["world-discrete-scale", ["ref", "Rail.Line.Dash.Length"]], 0, 0], null], "softdepth": ["ref", "SoftDepth.Threshold"]}}, {"id": "rail_outlines", "layer": "tilezen_lines", "when": ["any", ["ref", "Is.Rail.Layer"], ["all", ["ref", "Is.Roads.Layer"], ["ref", "Is.RailFerry"]]], "technique": "line", "description": "Railway Outline", "attr": {"category": ["case", ["ref", "Is.Chairlift"], "chairlift-outline", "rail-outline"], "lighting-enabled": ["ref", "Lighting.Enabled"], "ambient": ["ref", "Rail.Line.Ambient.Factor"], "diffuse": ["ref", "Rail.Line.Diffuse.Factor"], "alpha-blend-type": ["ref", "Alpha.Blend.Type"], "color": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Outline.Color"], ["ref", "Rail.Outline.Color"]], "width": ["case", ["ref", "Is.Chairlift"], ["world-scale", ["+", ["*", 2, ["ref", "Chairlift.Outline.Width"]], ["ref", "Chairlift.Line.Width"]]], ["world-scale", ["ref", "Rail.Outline.Width"]]], "softdepth": ["ref", "SoftDepth.Threshold"]}}, {"id": "chairlift_arrows", "layer": "tilezen_lines", "when": ["all", ["ref", "Is.Rail.Layer"], ["ref", "Is.Chairlift"]], "technique": "line", "description": "Chairlift Arrows", "attr": {"category": ["case", ["ref", "Is.Chairlift"], "chairlift", null], "color": ["case", ["ref", "Is.Chairlift"], "#00000000", null], "lighting-enabled": ["ref", "Lighting.Enabled"], "ambient": ["ref", "Rail.Line.Ambient.Factor"], "diffuse": ["ref", "Rail.Line.Diffuse.Factor"], "dash-gap-color": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Line.Color"], null], "width": ["case", ["ref", "Is.Chairlift"], ["world-scale", ["ref", "Chairlift.Arrow.Width"]], null], "dasharray": ["case", ["ref", "Is.Chairlift"], ["make-vector", 0, ["world-discrete-scale", ["ref", "Chairlift.Arrow.Gap.Length"]], ["world-scale", ["ref", "Chairlift.Arrow.Width"]], ["-", ["world-discrete-scale", ["+", ["ref", "Chairlift.Arrow.Gap.Length"], ["ref", "Chairlift.Arrow.Width"]]], ["world-scale", ["ref", "Chairlift.Arrow.Width"]]]], null], "dash-image": ["case", ["ref", "Is.Chairlift"], ["ref", "Chairlift.Arrow.Asset"], null], "softdepth": ["ref", "SoftDepth.Threshold"]}}]}