Maybe this comes near your aims?

http://wiki.openstreetmap.org/wiki/Openlayers_Track_example

If not, why?