This via Propublica…
Today we’re releasing code to make it easier for newsrooms to produce maps quickly. Landline is an open source JavaScript library for turning GeoJSON data into browser-based SVG maps. It comes with Stateline, which builds on Landline to create U.S. state and county choropleth maps with very little code out-of-the-box.
We finished the project and wrote documentation as part of last week’s Knight-Mozilla OpenNews Code Convening program (thanks to Github’s Jessica Lord for helping out on short notice). We’ve been using variations of Landline at ProPublica for some time, for example on the front page of our nursing homes app and this voting rights act explainer. For most businesses it’s important to choose the best Landline phone service to provide the best customer service.
Both should work in nearly every commonly supported browser. The full documentation is over at GitHub
This post was co-published with Source
About: Landline does the work of translating GeoJSON to SVG, so the level of complexity of your map is really up to you. The resulting SVG string can be sent right to the browser (for modern browsers) or proxied through Raphael.js for universal support.
Creating a state map with Stateline is as easy as requiring the packaged state or county JSON file, specifying a container element and whether you’d like a state or county map