CSS Styling Torque in CartoDB

المشرف العام

Administrator
طاقم الإدارة
I am trying to make a map that would show the total load of a bus. I have plotted the route and set up the time constraints. The ellipse is moving and seems to work fine, but when I try to style the ellipses based on the amount of load the marker-fill is completely removed.

Has anyone had this problem before?

/** torque visualization */ Map { -torque-frame-count:256; -torque-animation-duration:60; -torque-time-attribute:"timexl"; -torque-resolution:2; } #table_11{ comp-op: lighter; marker-fill-opacity: 0.9; marker-line-color: #000; marker-line-width: 4; marker-line-opacity: 1; marker-type: ellipse; } #table_11 [load >=10] { marker-fill: #000; } #table_11 [load >= 8] { marker-fill: #400; } #table_11 [load >= 3] { marker-fill: #800; } #table_11 [load >= 1] { marker-fill: #F00; } #table_11[frame-offset=1] { marker-width:8; marker-fill-opacity:0.45; } #table_11[frame-offset=2] { marker-width:10; marker-fill-opacity:0.225; }





أكثر...
 
أعلى