How to display traffic data layer on Google Maps with Javascript API. Plus a tutorial to switch between data layer types such as Transit and Bicycle from user input
Example Code: https://gist.github.com/theredstapler/0b8645a3410b71c8aa0253d86ee24278