Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Creating compatible js files for choropleth mapping #8
Is there some documentation available for the structure used by countryData.js and stateData.js?
I would like to use other GeoJSON files, such as U.S. counties or legislative districts, but I'm not sure how the GeoJSON is being transformed, exactly, so I'm having trouble making my own files.
In the docs, I see that
That use of keys seems to create invalid GeoJSON per spec, therefore, it will be difficult to create additional files without a conversion script. Is such a script available, by any chance?
Good question. I know the documentation needs some work, and now I know of
In this case, the key things to note in the DataLayer options are:
As an alternative to this approach, if you want to create your own custom
Hope this helps. Does this answer your question? Let me know if you have
On Tuesday, December 3, 2013, Martin Burch wrote: