The Parameterized Lines sample illustrates how to flexibly style and filter polylines via a dedicated painter. Any attribute can be used to thematically style the data. All calculations are performed client-side.
The sample shows a dataset of flight to and from New York.
Each flight has a couple of properties:
The buttons allow you to choose different visualization styles.
See
ParameterizedLinePainter
for details on how to use this kind of styling.
rangeColorMap
change color along each line based on a property
rangeWindow
to filter out parts of each line
propertyColorExpressions
to color whole lines based on properties
FeaturePainter.density
to enable density