Skip to content
forked from ehur/mapviz

jquery plugin to vizualize quantifiable data on a map

Notifications You must be signed in to change notification settings

mikehatfield/mapviz

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mapviz.js plugin for jquery. To run this example: git clone [email protected]:ehur/mapviz.git

python -m SimpleHTTPServer

navigate to localhost:8000

Usage: see the drawMap() functions in index.html and solarInstallations.html for usage examples

To use the plugin in your own code you will need from this repo:

  • lib/mapviz.js //the plugin itself
  • styles/mapvizstyles.css //styles required for the map legend
  • data/ca_counties_name.json //topojson for California counties

(todo: a future release will hopefully bundle both the style and the json into the plugin, so the extra files won't be needed.)

And you'll need includes for:

  • jquery
  • underscore
  • d3.v3
  • topojson

for example:

<script type="text/javascript" src="lib/jquery/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="lib/underscore-min-1.6.0.js"></script>
<script type="text/javascript" src="lib/mapviz.js"></script>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>

About

jquery plugin to vizualize quantifiable data on a map

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 68.3%
  • HTML 19.5%
  • CSS 12.2%