Closed shawnbot closed 8 years ago
Okay, so as of 2c86b93 we have state and county maps that show federal land ownership. Adding Indian lands to this should be technically easy, but now we have a serious design challenge on our hands, because these maps are going to get hard to read pretty quickly, e.g.
@gemfarmer and I have made lots of headway in getting these maps incorporated into the new state pages, and adding the rest shouldn't be too difficult. The page linked above exists as a stress test of sorts, and in its current state even Chrome fails in it sometimes (some maps randomly don't load one or more "layers", for instance), so this approach might not be bulletproof. But I think that if we keep the number of maps on a single page as low as possible and minimize the number of layers on them, then this could work.
Next up is to figure out how to make these maps legible, IMO. What do you think, @ericronne?
@shawnbot (and perhaps @meiqimichelle) Can we set up a chat to discuss? I can work on this next week. thx!
We're going to split these into two issues. The map display should be separate for @ericronne to work on. The stats issue should remain for @shawnbot and @gemfarmer .
Okay, land ownership stats work will continue here. For map design concerns, see #1391.
For posterity: The current land ownership stats only list federally owned acreage and percentages by state:
AL:
total_acres: 32678400
federal_acres: 844026
federal_percent: 2.6
There's also a US
key in there, so you can get the nationwide federally owned acreage and percentage with:
{{ site.data.land_stats.US.federal_acres }}
{{ site.data.land_stats.US.federal_percent }}
We need per-state county maps that also show federally owned and Native American ("Indian") lands. Along the way we'll need to generate data that gives us the land area and ownership percentages of state and national land (we can check our numbers against this paper by the Federation of American Scientists). State maps should include as individually addressable (and style-able) layers, from bottom to top:
Ownership percentage stats should be rolled up into YAML that looks something like:
I'm really liking the idea of using static SVG for the maps and coloring counties dynamically. Eventually, I'd love to replace the
<eiti-map>
component (which loads the TopoJSON, projects the data, and creates SVG on the fly) with one that loads SVG and leverages the<use>
element to fill shapes, as in this pen. This should load and render much more quickly, even if the resulting SVG documents are larger than the TopoJSON, because the duplicate topology arcs will be compressed en route to the browser. It'll also result in less repetition in the page templates.The result of this should be one SVG file per state, e.g.
maps/states/UT.svg
for Utah.The best data probably comes from the National Atlas:
Federal Lands
Indian Lands
Protraction and Leasing (offshore areas)