Skip to content

Instantly share code, notes, and snippets.

@enactdev
Last active April 12, 2017 02:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enactdev/4553334882f8d9f66787330639d90f87 to your computer and use it in GitHub Desktop.
Save enactdev/4553334882f8d9f66787330639d90f87 to your computer and use it in GitHub Desktop.
Display Delaware's state Representative districts in a map!

Delaware's state Representative districts

A KML file of the districts was downloaded from opendata.firstmap.delaware.gov

And then converted to GeoJSON with the node project toGeoJSON.

togeojson de_districts_representative.kml  > de_districts_representative.json

Then minified with the node project json-minify.

json-minify de_districts_representative.json > de_districts_representative.min.json

Finally, load the GeoJSON code with the leaflet-ajax plugin.

Display the source blob
Display the rendered blob
Raw
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View raw

(Sorry about that, but we can’t show files that are this big right now.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment