Originally Created by: @andmcgregor
Adapted by: Wolf Noble @loiosh
Uses the Google Maps API to display the traffic surrounding a set of latitude and longitude coordinates.
- Place the
trafficmap
directory into your dashing dashboard'swidgets
directory - Add the following line of code to your layout.erb file:
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false"></script>
- Restart Dashing
Include a widget with a data-view
of Trafficmap
. Set the data-lat
and data-long
attributes. You may also specify zoom by setting the data-zoom
attribute.
<li data-row="1" data-col="1" data-sizex="2" data-sizey="3">
<div data-id="trafficmap" data-view="Trafficmap" data-title="Austin Traffic" data-lat="30.329548" data-long="-97.756257" data-zoom="14" ></div>
</li>
This widget is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license.