Skip to content
Library for using Google Maps API V3 Polygon's to make chloropleth maps
JavaScript Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
sampledata changed data to fit GeoJSON spec
src adding a gmap.remove_polygons function
.gitignore adding .gitignore
LICENSE adding basic README and MIT license
README added not about requiring jQuery for kml
build.sh compiled. small changes to default values
gmap-features.js adding a gmap.remove_polygons function
gmap-features.min.js adding a gmap.remove_polygons function
index.html

README

A library for creating Polygon features on a Google Map.

Supports mouseover and click events and having one selected polygon at a time.

Can provide options to style the polygons in each of the three states, and a callback function to do something upon highlighting or selecting a polygon.

Requires jQuery to be available to use KML files

Uses code extracted from http://censusmapmaker.com/ and http://graphicsweb.wsj.com/documents/MTAFARES1108/

MIT License



If you want to tinker with the code, the file in src/ includes each js file separately. To build them into the final gmap-features.min.js file run ./build.sh
That'll need a the $CLOSURE_PATH for Google's Closure Compiler set. Put something like the below in your .bash_profile
export CLOSURE_PATH='/Users/suna/stuff/closure-compiler/compiler.jar'
Something went wrong with that request. Please try again.