here's an example that's similar to what i mention above for ofPolyline