{"styles": [{"id": "japan_rail_labels", "extends": "rail_labels", "layer": "tilezen_lines", "when": ["==", ["get", "source"], "ipc"], "technique": "text", "attr": {"category": ["case", ["ref", "Is.Rail.Subway"], "japan-subway-rail-labels", ["ref", "Is.Rail.Private"], "japan-private-rail-labels", ["ref", "Is.Rail.State"], "japan-state-rail-labels", ["ref", "Is.Rail.Tram"], "japan-tram-rail-labels", ["ref", "Is.Rail.Monorail"], "japan-monorail-labels", ["ref", "Is.Rail.Speed"], "japan-speed-rail-labels", ["ref", "Is.CableCar"], "japan-cable-car-labels", ["ref", "Is.Gondola"], "japan-gondola-labels", ["base-attribute-value"]], "outline-width": ["case", ["ref", "Is.Rail.Subway"], ["ppi-scale", ["ref", "Rail.Subway.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.State"], ["ppi-scale", ["ref", "Rail.State.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Private"], ["ppi-scale", ["ref", "Rail.Private.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Tram"], ["ppi-scale", ["ref", "Rail.Tram.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Monorail"], ["ppi-scale", ["ref", "Rail.Monorail.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Speed"], ["ppi-scale", ["ref", "Rail.Speed.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.CableCar"], ["ppi-scale", ["ref", "CableCar.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Gondola"], ["ppi-scale", ["ref", "Gondola.Label.Outline.Width"], ["ref", "ScalePPI.Labels"]], ["base-attribute-value"]], "outline-color": ["case", ["ref", "Is.Rail.Subway"], ["ref", "Rail.Subway.Label.Outline.Color"], ["ref", "Is.Rail.Private"], ["ref", "Rail.Private.Label.Outline.Color"], ["ref", "Is.Rail.State"], ["ref", "Rail.State.Label.Outline.Color"], ["ref", "Is.Rail.Tram"], ["ref", "Rail.Tram.Label.Outline.Color"], ["ref", "Is.Rail.Monorail"], ["ref", "Rail.Monorail.Label.Outline.Color"], ["ref", "Is.Rail.Speed"], ["ref", "Rail.Speed.Label.Outline.Color"], ["ref", "Is.CableCar"], ["ref", "CableCar.Label.Outline.Color"], ["ref", "Is.Gondola"], ["ref", "Gondola.Label.Outline.Color"], ["base-attribute-value"]], "color": ["case", ["ref", "Is.Rail.Subway"], ["ref", "Rail.Subway.Label.Color"], ["ref", "Is.Rail.Private"], ["ref", "Rail.Private.Label.Color"], ["ref", "Is.Rail.State"], ["ref", "Rail.State.Label.Color"], ["ref", "Is.Rail.Tram"], ["ref", "Rail.Tram.Label.Color"], ["ref", "Is.Rail.Monorail"], ["ref", "Rail.Monorail.Label.Color"], ["ref", "Is.Rail.Speed"], ["ref", "Rail.Speed.Label.Color"], ["ref", "Is.CableCar"], ["ref", "CableCar.Label.Color"], ["ref", "Is.Gondola"], ["ref", "Gondola.Label.Color"], ["base-attribute-value"]], "size": ["case", ["ref", "Is.Rail.Subway"], ["ppi-scale", ["ref", "Rail.Subway.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.State"], ["ppi-scale", ["ref", "Rail.State.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Private"], ["ppi-scale", ["ref", "Rail.Private.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Tram"], ["ppi-scale", ["ref", "Rail.Tram.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Monorail"], ["ppi-scale", ["ref", "Rail.Monorail.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Rail.Speed"], ["ppi-scale", ["ref", "Rail.Speed.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.CableCar"], ["ppi-scale", ["ref", "CableCar.Label.Size"], ["ref", "ScalePPI.Labels"]], ["ref", "Is.Gondola"], ["ppi-scale", ["ref", "Gondola.Label.Size"], ["ref", "ScalePPI.Labels"]], ["base-attribute-value"]], "bold-amount": ["ref", "Rail.Label.Style"]}}, {"id": "japan_rail_outlines", "extends": "rail_outlines", "layer": "tilezen_lines", "when": ["==", ["get", "source"], "ipc"], "technique": "line", "attr": {"category": ["case", ["ref", "Is.Rail.State"], "japan-state-rail-outline", ["ref", "Is.Rail.Speed"], "japan-speed-rail-outline", ["ref", "Is.Rail"], "japan-rail-outline", ["ref", "Is.Rail.Subway"], "japan-subway-rail-outline", ["ref", "Is.Rail.Private"], "japan-private-rail-outline", ["ref", "Is.Rail.Tram"], "japan-tram-rail-outline", ["ref", "Is.Rail.Monorail"], "japan-monorail-outline", ["ref", "Is.CableCar"], "japan-cable-car-outline", ["ref", "Is.Gondola"], "japan-gondola-outline", ["ref", "Is.RollerCoaster"], "japan-roller-coaster-outline", ["base-attribute-value"]], "maxZoomLevel": ["ref", "Rail.MaxZoomLevel"], "opacity": ["ref", "Rail.Opacity"], "width": ["case", ["ref", "Is.Rail.State"], ["world-scale", ["+", ["*", 2, ["ref", "Rail.State.Outline.Width"]], ["ref", "Rail.State.Line.Width"]]], ["ref", "Is.Rail.Speed"], ["world-scale", ["+", ["*", 2, ["ref", "Rail.Speed.Outline.Width"]], ["ref", "Rail.Speed.Line.Width"]]], ["ref", "Is.Rail.Subway"], ["world-scale", ["+", ["*", 2, ["ref", "Rail.Subway.Outline.Width"]], ["ref", "Rail.Subway.Line.Width"]]], ["ref", "Is.Rail.Private"], ["world-scale", ["+", ["*", 2, ["ref", "Rail.Private.Outline.Width"]], ["ref", "Rail.Private.Line.Width"]]], ["ref", "Is.Rail.Tram"], ["world-scale", ["+", ["*", 2, ["ref", "Rail.Tram.Outline.Width"]], ["ref", "Rail.Tram.Line.Width"]]], ["ref", "Is.Rail.Monorail"], ["world-scale", ["+", ["*", 2, ["ref", "Rail.Monorail.Outline.Width"]], ["ref", "Rail.Monorail.Line.Width"]]], ["ref", "Is.CableCar"], ["world-scale", ["+", ["*", 2, ["ref", "CableCar.Outline.Width"]], ["ref", "CableCar.Line.Width"]]], ["ref", "Is.Gondola"], ["world-scale", ["+", ["*", 2, ["ref", "Gondola.Outline.Width"]], ["ref", "Gondola.Line.Width"]]], ["ref", "Is.RollerCoaster"], ["world-scale", ["+", ["*", 2, ["ref", "RollerCoaster.Outline.Width"]], ["ref", "RollerCoaster.Line.Width"]]], ["base-attribute-value"]], "color": ["case", ["ref", "Is.Rail.State"], ["ref", "Rail.State.Outline.Color"], ["ref", "Is.Rail.Speed"], ["ref", "Rail.Speed.Outline.Color"], ["ref", "Is.Rail.Subway"], ["ref", "Rail.Subway.Outline.Color"], ["ref", "Is.Rail.Private"], ["ref", "Rail.Private.Outline.Color"], ["ref", "Is.Rail.Tram"], ["ref", "Rail.Tram.Outline.Color"], ["ref", "Is.Rail.Monorail"], ["ref", "Rail.Monorail.Outline.Color"], ["ref", "Is.CableCar"], ["ref", "CableCar.Outline.Color"], ["ref", "Is.Gondola"], ["ref", "Gondola.Outline.Color"], ["ref", "Is.RollerCoaster"], ["ref", "RollerCoaster.Outline.Color"], ["base-attribute-value"]]}}, {"id": "japan_rail_lines", "extends": "rail_lines", "layer": "tilezen_lines", "when": ["==", ["get", "source"], "ipc"], "technique": "line", "attr": {"category": ["case", ["ref", "Is.Rail.Private"], "japan-private-rail", ["ref", "Is.Rail.State"], "japan-state-rail", ["ref", "Is.Rail.Subway"], "japan-subway-rail", ["ref", "Is.Rail.Tram"], "japan-tram-rail", ["ref", "Is.Rail.Monorail"], "japan-monorail", ["ref", "Is.Rail.Speed"], "japan-speed-rail", ["ref", "Is.Rail"], "japan-rail", ["ref", "Is.CableCar"], "japan-cable-car", ["ref", "Is.Gondola"], "japan-gondola", ["ref", "Is.RollerCoaster"], "japan-roller-coaster", ["base-attribute-value"]], "maxZoomLevel": ["ref", "Rail.MaxZoomLevel"], "opacity": ["ref", "Rail.Opacity"], "dasharray": ["case", ["ref", "Is.Rail.State"], ["make-vector", ["world-discrete-scale", ["ref", "Rail.State.Line.Gap.Length"]], ["world-discrete-scale", ["ref", "Rail.State.Line.Dash.Length"]], 0, 0], ["ref", "Is.Rail.Speed"], ["make-vector", ["world-discrete-scale", ["ref", "Rail.Speed.Line.Gap.Length"]], ["world-discrete-scale", ["ref", "Rail.Speed.Line.Dash.Length"]], 0, 0], null], "dash-gap-color": ["case", ["ref", "Is.Rail.State"], ["ref", "Rail.State.SecondLine.Color"], ["ref", "Is.Rail.Speed"], ["ref", "Rail.Speed.SecondLine.Color"], ["base-attribute-value"]], "width": ["case", ["ref", "Is.Rail.Private"], ["world-scale", ["ref", "Rail.Private.Line.Width"]], ["ref", "Is.Rail.State"], ["world-scale", ["ref", "Rail.State.Line.Width"]], ["ref", "Is.Rail.Speed"], ["world-scale", ["ref", "Rail.Speed.Line.Width"]], ["ref", "Is.Rail.Tram"], ["world-scale", ["ref", "Rail.Tram.Line.Width"]], ["ref", "Is.Rail.Monorail"], ["world-scale", ["ref", "Rail.Monorail.Line.Width"]], ["ref", "Is.Rail.Subway"], ["world-scale", ["ref", "Rail.Subway.Line.Width"]], ["ref", "Is.CableCar"], ["world-scale", ["ref", "CableCar.Line.Width"]], ["ref", "Is.Gondola"], ["world-scale", ["ref", "Gondola.Line.Width"]], ["ref", "Is.RollerCoaster"], ["world-scale", ["ref", "RollerCoaster.Line.Width"]], ["base-attribute-value"]], "color": ["case", ["ref", "Is.Rail.Private"], ["ref", "Rail.Private.Line.Color"], ["ref", "Is.Rail.State"], ["ref", "Rail.State.Line.Color"], ["ref", "Is.Rail.Speed"], ["ref", "Rail.Speed.Line.Color"], ["ref", "Is.Rail.Tram"], ["ref", "Rail.Tram.Line.Color"], ["ref", "Is.Rail.Monorail"], ["ref", "Rail.Monorail.Line.Color"], ["ref", "Is.Rail.Subway"], ["ref", "Rail.Subway.Line.Color"], ["ref", "Is.CableCar"], ["ref", "CableCar.Line.Color"], ["ref", "Is.Gondola"], ["ref", "Gondola.Line.Color"], ["ref", "Is.RollerCoaster"], ["ref", "RollerCoaster.Line.Color"], ["base-attribute-value"]]}}]}