Skip to content

wolfspyre/dashing-trafficmap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Dashing Traffic Map Widget

Originally Created by: @andmcgregor

Adapted by: Wolf Noble @loiosh

About

Uses the Google Maps API to display the traffic surrounding a set of latitude and longitude coordinates.

Screenshot

Dashing traffic map

Installation

  • Place the trafficmap directory into your dashing dashboard's widgets 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

Using the widget

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>

License

This widget is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 license.

About

Map Widget for the Dashing.js framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CoffeeScript 70.8%
  • CSS 24.8%
  • HTML 4.4%