Map Widget for the Dashing.js framework
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is 1 commit ahead of andmcgregor:master.
Permalink
Failed to load latest commit information.
trafficmap Inital refactor to trafficmap Feb 20, 2015
README.md Inital refactor to trafficmap Feb 20, 2015

README.md

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.