{"styles": [{"id": "truck_attributes_lines", "layer": "tilezen_truck_attributes", "when": ["all", ["any", ["!=", ["ref", "Truck.Icon.Lookup.FileName"], null], ["ref", "Is.Restriction.Multiple"]], ["ref", "Is.TruckFeature.Restriction.Displayed"]], "technique": "line", "description": "Truck Attributes Lines", "attr": {"category": ["case", ["ref", "Is.Restriction.Time.Inactive"], "truck-inactive", "truck"], "minZoomLevel": ["ref", "Truck.MinZoomLevel"], "cap": ["ref", "Truck.Cap"], "width": ["case", ["!", ["ref", "Truck.Attribute.Is.Main"]], 0, ["case", ["ref", "Is.Street.Category0"], ["world-scale", ["ref", "Truck.Category0.Width"]], ["ref", "Is.Street.Category1"], ["world-scale", ["ref", "Truck.Category1.Width"]], ["ref", "Is.Street.Category2"], ["world-scale", ["ref", "Truck.Category2.Width"]], ["ref", "Is.Street.Category3"], ["world-scale", ["ref", "Truck.Category3.Width"]], ["ref", "Is.Street.Category4"], ["world-scale", ["ref", "Truck.Category4.Width"]], ["ref", "Is.Street.Pedestrian"], ["world-scale", ["ref", "Truck.Pedestrian.Width"]], ["world-scale", ["ref", "Truck.Pedestrian.Width"]]]], "color": ["case", ["ref", "Is.Restriction.Time.Inactive"], ["ref", "Truck.Color.Inactive"], ["ref", "Truck.Color"]], "dash-gap-color": ["case", ["ref", "Is.Restriction.Time.Inactive"], ["ref", "Truck.SecondLine.Color.Inactive"], ["ref", "Truck.SecondLine.Color"]], "dasharray": ["make-vector", ["world-discrete-scale", ["ref", "Truck.Gap.Length"]], ["world-discrete-scale", ["ref", "Truck.Dash.Length"]], 0, 0], "softdepth": ["ref", "SoftDepth.Threshold"]}}, {"id": "truck_attributes_outlines", "layer": "tilezen_truck_attributes", "when": ["all", ["any", ["!=", ["ref", "Truck.Icon.Lookup.FileName"], null], ["ref", "Is.Restriction.Multiple"]], ["ref", "Is.TruckFeature.Restriction.Displayed"]], "technique": "line", "description": "Truck Attributes Outlines", "attr": {"category": ["case", ["ref", "Is.Restriction.Time.Inactive"], "truck-outline-inactive", "truck-outline"], "minZoomLevel": ["ref", "Truck.MinZoomLevel"], "cap": ["ref", "Truck.Outline.Cap"], "width": ["case", ["!", ["ref", "Truck.Attribute.Is.Main"]], 0, ["case", ["ref", "Is.Street.Category0"], ["case", ["<=", ["ref", "Truck.Category0.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Category0.Outline.Width"]], ["ref", "Truck.Category0.Width"]]]], ["ref", "Is.Street.Category1"], ["case", ["<=", ["ref", "Truck.Category1.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Category1.Outline.Width"]], ["ref", "Truck.Category1.Width"]]]], ["ref", "Is.Street.Category2"], ["case", ["<=", ["ref", "Truck.Category2.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Category2.Outline.Width"]], ["ref", "Truck.Category2.Width"]]]], ["ref", "Is.Street.Category3"], ["case", ["<=", ["ref", "Truck.Category3.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Category3.Outline.Width"]], ["ref", "Truck.Category3.Width"]]]], ["ref", "Is.Street.Category4"], ["case", ["<=", ["ref", "Truck.Category4.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Category4.Outline.Width"]], ["ref", "Truck.Category4.Width"]]]], ["ref", "Is.Street.Pedestrian"], ["case", ["<=", ["ref", "Truck.Pedestrian.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Pedestrian.Outline.Width"]], ["ref", "Truck.Pedestrian.Width"]]]], ["case", ["<=", ["ref", "Truck.Pedestrian.Outline.Width"], 0], 0, ["world-scale", ["+", ["*", 2, ["ref", "Truck.Pedestrian.Outline.Width"]], ["ref", "Truck.Pedestrian.Width"]]]]]], "color": ["case", ["ref", "Is.Restriction.Time.Inactive"], ["ref", "Truck.Outline.Color.Inactive"], ["ref", "Truck.Outline.Color"]], "softdepth": ["ref", "SoftDepth.Threshold"]}}, {"id": "truck_attributes_labels", "layer": "tilezen_truck_attributes", "when": ["all", ["!=", ["ref", "Truck.Icon.Lookup.FileName"], null], ["ref", "Is.TruckFeature.Restriction.Displayed"]], "technique": "icon-text", "description": "Truck Attributes Icons", "attr": {"category": ["case", ["ref", "Is.Restriction.Time.Inactive"], ["concat", "truck-icon-inactive-", ["ref", "Truck.Icon.Key.IconId"]], ["concat", "truck-icon-", ["ref", "Truck.Icon.Key.IconId"]]], "iconMinZoomLevel": ["ref", "Truck.MinZoomLevel"], "textMinZoomLevel": ["ref", "Truck.MinZoomLevel"], "anchor-point-density": 10, "margin": ["ref", "Default.Margin"], "check-margin": ["ref", "Truck.Icon.Margin"], "persisting-margin-reducing": ["ref", "Default.PersistingMargin.Reducing"], "stacking-allowed": true, "anchor-order-preference": "BasicGroupedStartFromCenter", "far-threshold": 0.9, "far-threshold-range": 0.05, "text-dx": ["ppi-scale", ["+", -0.5, ["ref", "Truck.Icon.Lookup.TextOffsetX"]], ["ref", "ScalePPI.Labels"]], "text-dy": ["*", ["*", ["ref", "Truck.Label.MagnificationFactor"], ["ref", "Truck.Label.SizeFactor"]], ["ppi-scale", ["ref", "Truck.Icon.Lookup.TextOffsetY"], ["ref", "ScalePPI.Labels"]]], "text-opacity": ["case", ["ref", "Truck.Icon.WithoutText"], 0, 1], "icon-shadow-enabled": ["ref", "Truck.Icon.Shadow.Enabled"], "icon-shadow-color": ["ref", "Icon.Shadow.Color"], "icon-shadow-blur-radius": ["ref", "Icon.Shadow.BlurRadius"], "icon-shadow-size-increment": ["ref", "Icon.Shadow.SizeIncrement"], "icon-shadow-shear-factor-x": ["ref", "Icon.Shadow.ShearFactorX"], "icon-shadow-shear-factor-y": ["ref", "Icon.Shadow.ShearFactorY"], "icon-shadow-dx": ["ref", "Icon.Shadow.DistanceX"], "icon-shadow-dy": ["-", ["ref", "Icon.Shadow.DistanceY"]], "text-color": ["case", ["ref", "Is.Restriction.Time.Inactive"], ["ref", "Truck.Label.Color.Inactive"], ["ref", "Truck.Label.Color"]], "font-bold-amount": ["ref", "Truck.Label.Style"], "font": ["ref", "Default.Font"], "text-size": ["*", ["ref", "Truck.Label.MagnificationFactor"], ["ppi-scale", ["*", ["ref", "Truck.Label.Size"], ["ref", "Truck.Label.SizeFactor"]], ["ref", "ScalePPI.Labels"]]], "icon-composition-type": "overlaid", "icon-source": ["concat", ["ref", "Truck.Icon.Lookup.FileName"], ",", ["case", ["ref", "Is.Restriction.Time"], ["ref", "Truck.Icon.TimeAddOn.Lookup.FileName"], ""], ",", ["case", ["ref", "Is.Restriction.Delivery"], ["ref", "Truck.Icon.DeliveryAddOn.Lookup.FileName"], ""]], "stacking-icon-source": ["ref", "Truck.Icon.Stacking.Lookup.FileName"], "stacking-icon-offset": ["case", ["ref", "Is.Restriction.Stacking.Diamond"], ["make-vector", 0.225, 0], ["make-vector", 0.275, 0]], "text-brightness": ["ref", "Truck.Label.Brightness"], "icon-brightness": ["case", ["ref", "Is.Restriction.Time.Inactive"], ["ref", "Truck.Icon.Brightness.Inactive"], ["ref", "Truck.Icon.Brightness"]], "attribute-name": ["ref", "Truck.AttributeName"], "secondary-attribute-name": "", "text": ["ref", "Truck.Icon.CustomText"], "icon-width": ["ppi-scale", ["*", ["ref", "Truck.Icon.Size"], ["ref", "Truck.Label.SizeFactor"]], ["ref", "ScalePPI.Labels"]], "allow-cropped": ["ref", "AllowCroppedLabels"]}}]}