├── src ├── assets │ └── .placeholder ├── data │ └── .placeholder ├── js │ ├── config.js │ ├── maps │ │ ├── world.js │ │ ├── usa.js │ │ ├── streets.js │ │ ├── base.js │ │ └── europe.js │ ├── detectFeatures.js │ ├── utils.js │ ├── share.js │ ├── fm.js │ ├── geomath.js │ ├── libs │ │ └── frameMessager.min.js │ └── thing.js ├── fonts │ ├── qz-icons.eot │ ├── qz-icons.ttf │ ├── qz-icons.woff │ ├── Calibre-Medium.otf │ ├── PTSerif │ │ ├── PTF55F.ttf │ │ ├── PTF56F.ttf │ │ ├── PTF55F-webfont.eot │ │ ├── PTF55F-webfont.ttf │ │ ├── PTF55F-webfont.woff │ │ ├── Paratype PT Sans Free Font License.txt │ │ └── PTF55F-webfont.svg │ ├── PT_Serif-Web-Bold.ttf │ ├── AdelleSansWeb │ │ ├── AdelleSans_Light.otf │ │ ├── AdelleSansBasic_Bold.eot │ │ ├── AdelleSansBasic_Bold.ttf │ │ ├── AdelleSansBasic_Bold.woff │ │ ├── AdelleSansBasic_Light.eot │ │ ├── AdelleSansBasic_Light.ttf │ │ ├── AdelleSansBasic_Light.woff │ │ ├── AdelleSansBasic_Regular.eot │ │ ├── AdelleSansBasic_Regular.ttf │ │ └── AdelleSansBasic_Regular.woff │ ├── qz-icons.svg │ └── qz-icons.json ├── styl │ ├── maps │ │ ├── world.styl │ │ ├── usa.styl │ │ ├── base.styl │ │ ├── streets.styl │ │ └── europe.styl │ ├── qz │ │ ├── buttons.styl │ │ ├── share.styl │ │ ├── colors.styl │ │ ├── dropdowns.styl │ │ ├── icons.styl │ │ ├── chart-elements.styl │ │ └── type.styl │ ├── main.styl │ ├── layout.styl │ ├── thing.styl │ ├── responsive.styl │ └── normalize.styl └── jade │ ├── includes │ └── share.jade │ ├── index.jade │ └── thing.jade ├── requirements.txt ├── data ├── wind │ ├── pot_wind_cap_080_current.cst │ ├── pot_wind_cap_080_current.dbf │ ├── pot_wind_cap_080_current.shp │ ├── pot_wind_cap_080_current.shx │ ├── wfsrequest.txt │ └── pot_wind_cap_080_current.prj ├── oil-clipped │ ├── oil.dbf │ ├── oil.shp │ ├── oil.shx │ ├── oil.prj │ └── oil.qpj ├── coal-reduced │ ├── coal.dbf │ ├── coal.shp │ ├── coal.shx │ ├── coal.prj │ └── coal.qpj ├── wind-reduced │ ├── wind.dbf │ ├── wind.shp │ ├── wind.shx │ ├── wind.prj │ └── wind.qpj ├── coal-simplified │ ├── coal.dbf │ ├── coal.shp │ ├── coal.shx │ ├── coal.prj │ └── coal.qpj ├── solar-buffered │ ├── solar.dbf │ ├── solar.shp │ ├── solar.shx │ ├── solar.prj │ └── solar.qpj ├── solar-clipped │ ├── solar.dbf │ ├── solar.shp │ ├── solar.shx │ ├── solar.prj │ └── solar.qpj ├── solar-merged │ ├── solar.dbf │ ├── solar.shp │ ├── solar.shx │ ├── solar.prj │ └── solar.qpj ├── coalfdp050_nt00148.tar.gz ├── solar-simplified │ ├── solar.dbf │ ├── solar.shp │ ├── solar.shx │ ├── solar.prj │ └── solar.qpj ├── coalfdp050_nt00148 │ ├── coalfdp050.dbf │ ├── coalfdp050.shp │ └── coalfdp050.shx ├── TightOil_ShaleGas_Plays_Lower48_EIA.zip └── TightOil_ShaleGas_Plays_Lower48_EIA │ ├── TightOil_ShalePlays_US_EIA_May2016.dbf │ ├── TightOil_ShalePlays_US_EIA_May2016.sbn │ ├── TightOil_ShalePlays_US_EIA_May2016.sbx │ ├── TightOil_ShalePlays_US_EIA_May2016.shp │ ├── TightOil_ShalePlays_US_EIA_May2016.shx │ ├── TightOil_ShalePlays_US_EIA_May2016.prj │ └── TightOil_ShalePlays_US_EIA_May2016.shp.xml ├── .gitignore ├── README.md ├── maps ├── world.yml ├── europe.yml ├── streets.yml └── usa.yml ├── gulp ├── cli.js ├── utils.js └── config.js ├── content.json ├── geodata.yml ├── __build.sh ├── package.json └── gulpfile.js /src/assets/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/data/.placeholder: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | mapturner>=0.1.4 2 | -------------------------------------------------------------------------------- /data/wind/pot_wind_cap_080_current.cst: -------------------------------------------------------------------------------- 1 | ISO-8859-1 -------------------------------------------------------------------------------- /src/js/config.js: -------------------------------------------------------------------------------- 1 | var ENV = '/* @echo ENV */'; 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | build 3 | !node_modules/stylus-normalize 4 | .DS_Store 5 | .tmp -------------------------------------------------------------------------------- /data/oil-clipped/oil.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/oil-clipped/oil.dbf -------------------------------------------------------------------------------- /data/oil-clipped/oil.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/oil-clipped/oil.shp -------------------------------------------------------------------------------- /data/oil-clipped/oil.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/oil-clipped/oil.shx -------------------------------------------------------------------------------- /src/fonts/qz-icons.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/qz-icons.eot -------------------------------------------------------------------------------- /src/fonts/qz-icons.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/qz-icons.ttf -------------------------------------------------------------------------------- /src/fonts/qz-icons.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/qz-icons.woff -------------------------------------------------------------------------------- /data/coal-reduced/coal.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coal-reduced/coal.dbf -------------------------------------------------------------------------------- /data/coal-reduced/coal.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coal-reduced/coal.shp -------------------------------------------------------------------------------- /data/coal-reduced/coal.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coal-reduced/coal.shx -------------------------------------------------------------------------------- /data/wind-reduced/wind.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/wind-reduced/wind.dbf -------------------------------------------------------------------------------- /data/wind-reduced/wind.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/wind-reduced/wind.shp -------------------------------------------------------------------------------- /data/wind-reduced/wind.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/wind-reduced/wind.shx -------------------------------------------------------------------------------- /data/coal-simplified/coal.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coal-simplified/coal.dbf -------------------------------------------------------------------------------- /data/coal-simplified/coal.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coal-simplified/coal.shp -------------------------------------------------------------------------------- /data/coal-simplified/coal.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coal-simplified/coal.shx -------------------------------------------------------------------------------- /data/solar-buffered/solar.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-buffered/solar.dbf -------------------------------------------------------------------------------- /data/solar-buffered/solar.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-buffered/solar.shp -------------------------------------------------------------------------------- /data/solar-buffered/solar.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-buffered/solar.shx -------------------------------------------------------------------------------- /data/solar-clipped/solar.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-clipped/solar.dbf -------------------------------------------------------------------------------- /data/solar-clipped/solar.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-clipped/solar.shp -------------------------------------------------------------------------------- /data/solar-clipped/solar.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-clipped/solar.shx -------------------------------------------------------------------------------- /data/solar-merged/solar.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-merged/solar.dbf -------------------------------------------------------------------------------- /data/solar-merged/solar.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-merged/solar.shp -------------------------------------------------------------------------------- /data/solar-merged/solar.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-merged/solar.shx -------------------------------------------------------------------------------- /src/fonts/Calibre-Medium.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/Calibre-Medium.otf -------------------------------------------------------------------------------- /src/fonts/PTSerif/PTF55F.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/PTSerif/PTF55F.ttf -------------------------------------------------------------------------------- /src/fonts/PTSerif/PTF56F.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/PTSerif/PTF56F.ttf -------------------------------------------------------------------------------- /data/coalfdp050_nt00148.tar.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coalfdp050_nt00148.tar.gz -------------------------------------------------------------------------------- /data/solar-simplified/solar.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-simplified/solar.dbf -------------------------------------------------------------------------------- /data/solar-simplified/solar.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-simplified/solar.shp -------------------------------------------------------------------------------- /data/solar-simplified/solar.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/solar-simplified/solar.shx -------------------------------------------------------------------------------- /src/fonts/PT_Serif-Web-Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/PT_Serif-Web-Bold.ttf -------------------------------------------------------------------------------- /src/fonts/PTSerif/PTF55F-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/PTSerif/PTF55F-webfont.eot -------------------------------------------------------------------------------- /src/fonts/PTSerif/PTF55F-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/PTSerif/PTF55F-webfont.ttf -------------------------------------------------------------------------------- /data/coalfdp050_nt00148/coalfdp050.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coalfdp050_nt00148/coalfdp050.dbf -------------------------------------------------------------------------------- /data/coalfdp050_nt00148/coalfdp050.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coalfdp050_nt00148/coalfdp050.shp -------------------------------------------------------------------------------- /data/coalfdp050_nt00148/coalfdp050.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/coalfdp050_nt00148/coalfdp050.shx -------------------------------------------------------------------------------- /data/wind/pot_wind_cap_080_current.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/wind/pot_wind_cap_080_current.dbf -------------------------------------------------------------------------------- /data/wind/pot_wind_cap_080_current.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/wind/pot_wind_cap_080_current.shp -------------------------------------------------------------------------------- /data/wind/pot_wind_cap_080_current.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/wind/pot_wind_cap_080_current.shx -------------------------------------------------------------------------------- /src/fonts/PTSerif/PTF55F-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/PTSerif/PTF55F-webfont.woff -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/TightOil_ShaleGas_Plays_Lower48_EIA.zip -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSans_Light.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSans_Light.otf -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Bold.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Bold.eot -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Bold.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Bold.ttf -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Bold.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Bold.woff -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Light.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Light.eot -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Light.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Light.ttf -------------------------------------------------------------------------------- /data/oil-clipped/oil.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Light.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Light.woff -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Regular.eot -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Regular.ttf -------------------------------------------------------------------------------- /data/coal-reduced/coal.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /data/coal-simplified/coal.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /data/solar-buffered/solar.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /data/solar-clipped/solar.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /data/solar-merged/solar.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /data/wind-reduced/wind.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /src/fonts/AdelleSansWeb/AdelleSansBasic_Regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/src/fonts/AdelleSansWeb/AdelleSansBasic_Regular.woff -------------------------------------------------------------------------------- /data/solar-simplified/solar.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]] -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.dbf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.dbf -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.sbn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.sbn -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.sbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.sbx -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.shp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.shp -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.shx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/quartz/us-natural-resources/master/data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.shx -------------------------------------------------------------------------------- /data/TightOil_ShaleGas_Plays_Lower48_EIA/TightOil_ShalePlays_US_EIA_May2016.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]] -------------------------------------------------------------------------------- /data/wind/wfsrequest.txt: -------------------------------------------------------------------------------- 1 | https://maps-prod-map1.nrel.gov/geoserver/nrel/ows?outputFormat=SHAPE-ZIP&propertyName=lat%2Clong%2Cstate%2Carea_km2%2Cregion%2Ca30%2Ca35%2Ca40%2Cthe_geom_4326&request=GetFeature&service=WFS&typeName=nrel%3Apot_wind_cap_080_current&version=1.0.0 -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # us-energy-resources 2 | 3 | ## Setup 4 | 5 | ``` 6 | mkvirtualenv us-energy-resources 7 | pip install -r requirements.txt 8 | ``` 9 | 10 | ## Usage 11 | 12 | ``` 13 | mapturner geodata.yml src/data/geodata.json 14 | ``` 15 | 16 | ``` 17 | gulp 18 | ``` 19 | -------------------------------------------------------------------------------- /data/coal-reduced/coal.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/oil-clipped/oil.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/solar-merged/solar.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/wind-reduced/wind.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/coal-simplified/coal.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/solar-buffered/solar.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/solar-clipped/solar.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /data/solar-simplified/solar.qpj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84",DATUM["WGS_1984",SPHEROID["WGS 84",6378137,298.257223563,AUTHORITY["EPSG","7030"]],AUTHORITY["EPSG","6326"]],PRIMEM["Greenwich",0,AUTHORITY["EPSG","8901"]],UNIT["degree",0.0174532925199433,AUTHORITY["EPSG","9122"]],AUTHORITY["EPSG","4326"]] 2 | -------------------------------------------------------------------------------- /maps/world.yml: -------------------------------------------------------------------------------- 1 | # 2 | bbox: '-180 -90 180 90' 3 | layers: 4 | countries: 5 | type: 'shp' 6 | path: 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_countries_lakes.zip' 7 | id-property: 'name' 8 | -------------------------------------------------------------------------------- /data/wind/pot_wind_cap_080_current.prj: -------------------------------------------------------------------------------- 1 | GEOGCS["WGS 84", DATUM["World Geodetic System 1984", SPHEROID["WGS 84", 6378137.0, 298.257223563, AUTHORITY["EPSG","7030"]], AUTHORITY["EPSG","6326"]], PRIMEM["Greenwich", 0.0, AUTHORITY["EPSG","8901"]], UNIT["degree", 0.017453292519943295], AXIS["Geodetic longitude", EAST], AXIS["Geodetic latitude", NORTH], AUTHORITY["EPSG","4326"]] -------------------------------------------------------------------------------- /gulp/cli.js: -------------------------------------------------------------------------------- 1 | var opts = require('nomnom') 2 | .option('build', { 3 | abbr: 'b', 4 | help: 'Build project. [local | move | commit | push]', 5 | choices: ['local', 'move', 'commit', 'push'] 6 | }) 7 | .option('dont-minify', { 8 | abbr: 'd', 9 | flag: true, 10 | help: 'Prevent build from minifying your js' 11 | }); 12 | 13 | module.exports = opts; 14 | -------------------------------------------------------------------------------- /maps/europe.yml: -------------------------------------------------------------------------------- 1 | # 2 | bbox: '-15 -10 80 70' 3 | layers: 4 | countries: 5 | type: 'shp' 6 | path: 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_0_countries_lakes.zip' 7 | id-property: 'name' 8 | properties: 9 | - 'featurecla' 10 | - 'scalerank' 11 | -------------------------------------------------------------------------------- /src/styl/maps/world.styl: -------------------------------------------------------------------------------- 1 | // Paths 2 | .paths 3 | .countries path 4 | fill $qz-map-land-fill 5 | stroke $qz-map-land-stroke 6 | stroke-width 0.1% 7 | 8 | .cities path 9 | fill $qz-gray-2 10 | 11 | // Labels 12 | .labels 13 | text 14 | fill $qz-gray-2 15 | font-size: 60% 16 | text-anchor start 17 | alignment-baseline: middle 18 | -webkit-font-smoothing antialiased 19 | -------------------------------------------------------------------------------- /src/jade/includes/share.jade: -------------------------------------------------------------------------------- 1 | ul.share-buttons 2 | li.share-icon.twitter 3 | a(title='Tweet' class='share-action icon icon-twitter' target='_blank') 4 | li.share-icon.facebook 5 | a(title='Share on Facebook' class='share-action icon icon-facebook' target='_blank') 6 | li.share-icon.linkedin 7 | a(title='Share on LinkedIn' class='share-action icon icon-linkedin' target='_blank') 8 | li.share-icon.email 9 | a(title='Email' class='share-action icon icon-email' target='_blank') 10 | -------------------------------------------------------------------------------- /src/styl/qz/buttons.styl: -------------------------------------------------------------------------------- 1 | qz-button-group() 2 | text-align center 3 | button 4 | color white 5 | border none 6 | background-color $qz-gray-1 7 | font-family $qz-sans 8 | border-radius 3px 9 | margin 2px 4px 2px 0 10 | vertical-align middle 11 | padding 0px 8px 12 | line-height 2em 13 | display inline-block 14 | &.active 15 | //font-family $qz-sans-bold 16 | background-color $qz-purp-2 17 | transition background-color 0.2s linear 18 | &:focus 19 | outline 0 20 | -------------------------------------------------------------------------------- /gulp/utils.js: -------------------------------------------------------------------------------- 1 | function generateShellCmd (buildArg, qzdataPath, thingName) { 2 | var baseCmd = "./__build.sh " + qzdataPath + " " + thingName + " "; // then commit? push? 3 | 4 | switch (buildArg) { 5 | case "move": 6 | return baseCmd + "false false"; 7 | case "commit": 8 | return baseCmd + "true false"; 9 | case "push": 10 | return baseCmd + "true true"; 11 | default: 12 | return 'echo ""'; 13 | } 14 | } 15 | 16 | module.exports = { 17 | generateShellCmd: generateShellCmd 18 | }; 19 | -------------------------------------------------------------------------------- /src/js/maps/world.js: -------------------------------------------------------------------------------- 1 | var d3 = require('d3'); 2 | var geo = require('d3-geo-projection'); 3 | 4 | var base = require('./base.js'); 5 | 6 | function configure(width) { 7 | var output = $.extend(true, {}, base()); 8 | 9 | return $.extend(true, output, { 10 | 'projection': geo.kavrayskiy7().center([10, 2.5]), 11 | 'scale_factor': 0.18, 12 | 'scale_bar_distance': null, 13 | 'paths': [ 14 | 'countries' 15 | ] 16 | }); 17 | } 18 | 19 | module.exports = configure 20 | -------------------------------------------------------------------------------- /src/styl/maps/usa.styl: -------------------------------------------------------------------------------- 1 | // Paths 2 | .paths 3 | .states path 4 | fill $qz-map-land-fill 5 | stroke $qz-map-land-stroke 6 | stroke-width 0.5px 7 | 8 | .cities path 9 | fill $qz-gray-2 10 | 11 | // Labels 12 | .labels 13 | text 14 | fill $qz-gray-2 15 | font-size 80% 16 | text-anchor start 17 | alignment-baseline: middle 18 | -webkit-font-smoothing antialiased 19 | 20 | @media screen and (max-width $width-mobile) 21 | .paths 22 | .cities 23 | display none 24 | 25 | .labels 26 | .cities 27 | display none 28 | -------------------------------------------------------------------------------- /maps/streets.yml: -------------------------------------------------------------------------------- 1 | # 2 | bbox: '-74.05 40.733 -73.95 40.753' 3 | layers: 4 | roads: 5 | type: 'shp' 6 | path: 'new-york_new-york.imposm-shapefiles/new-york_new-york_osm_roads.shp' 7 | properties: 8 | - 'type' 9 | 10 | parks: 11 | type: 'shp' 12 | path: 'new-york_new-york.imposm-shapefiles/new-york_new-york_osm_landusages.shp' 13 | where: type = 'park' 14 | 15 | points: 16 | type: 'csv' 17 | path: 'points.csv' 18 | id-property: 'name' 19 | -------------------------------------------------------------------------------- /src/js/detectFeatures.js: -------------------------------------------------------------------------------- 1 | module.exports = function () { 2 | var features = {}; 3 | 4 | features.hasDeviceMotion = 'ondevicemotion' in window; 5 | features.isAndroid = (/android/gi).test(navigator.appVersion); 6 | features.isIDevice = (/iphone|ipad/gi).test(navigator.appVersion); 7 | features.isTouchPad = (/hp-tablet/gi).test(navigator.appVersion); 8 | features.isKindle = (/silk/gi).test(navigator.appVersion); 9 | features.hasTouchEvents = ( 10 | features.isAndroid || 11 | features.isIDevice || 12 | features.isTouchPad || 13 | features.isKindle 14 | ); 15 | 16 | return features; 17 | }; 18 | -------------------------------------------------------------------------------- /src/styl/main.styl: -------------------------------------------------------------------------------- 1 | // Normalize -- https://github.com/bymathias/normalize.styl 2 | @import 'normalize' 3 | 4 | // nib -- http://visionmedia.github.io/nib/ 5 | @import 'nib' 6 | 7 | // Qz modules. Comment out the things you don't need. 8 | @import 'qz/type' 9 | @import 'qz/colors' 10 | 11 | // Optional components. Uncomment if you need them. See wiki for usage info 12 | // note: `share` depends on `icons` 13 | //@import 'qz/icons' 14 | //@import 'qz/share' 15 | //@import 'qz/dropdowns' 16 | //@import 'qz/buttons' 17 | //@import 'qz/chart-elements' 18 | 19 | // Thing-specific css 20 | @import 'responsive' 21 | @import 'layout' 22 | @import 'thing' 23 | -------------------------------------------------------------------------------- /src/styl/maps/base.styl: -------------------------------------------------------------------------------- 1 | #title 2 | position absolute 3 | top 10px 4 | left 10px 5 | margin 0 6 | padding 0 7 | 8 | svg 9 | font-size 20px 10 | font-family: $qz-sans 11 | background-color $qz-map-water 12 | 13 | .graticules path 14 | fill none 15 | stroke $qz-map-graticule 16 | stroke-width 0.1% 17 | 18 | // Scale bar 19 | .scale-bar 20 | line 21 | stroke $qz-gray-2 22 | stroke-width 5px 23 | 24 | text 25 | fill $qz-gray-2 26 | font-size 100% 27 | alignment-baseline: middle 28 | -webkit-font-smoothing antialiased 29 | 30 | // responsive styles 31 | @media screen and (max-width $width-mobile) 32 | svg 33 | font-size 14px 34 | -------------------------------------------------------------------------------- /content.json: -------------------------------------------------------------------------------- 1 | { 2 | "hed": "This Quartz Thing has not connected to a Google Doc", 3 | "dek": "Perhaps you forgot to start the server? Make viewable to anyone with the link?", 4 | "items": [{ 5 | "copy": "Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat." 6 | }, { 7 | "copy": "Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur." 8 | }, { 9 | "copy": "Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum" 10 | }] 11 | } 12 | -------------------------------------------------------------------------------- /maps/usa.yml: -------------------------------------------------------------------------------- 1 | # 2 | bbox: '-180 5 -50 90' 3 | layers: 4 | states: 5 | type: 'shp' 6 | path: 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_1_states_provinces_lakes.zip' 7 | id-property: 'name' 8 | where: sr_adm0_a3 = 'USA' 9 | 10 | cities: 11 | type: 'shp' 12 | path: 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places_simple.zip' 13 | id-property: 'name' 14 | properties: 15 | - 'featurecla' 16 | - 'scalerank' 17 | where: adm0_a3 = 'USA' and scalerank < 3 18 | -------------------------------------------------------------------------------- /geodata.yml: -------------------------------------------------------------------------------- 1 | # 2 | bbox: '-180 5 -50 90' 3 | layers: 4 | states: 5 | type: 'shp' 6 | path: 'http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/50m/cultural/ne_50m_admin_1_states_provinces_lakes.zip' 7 | id-property: 'name' 8 | where: sr_adm0_a3 = 'USA' 9 | 10 | coal: 11 | type: 'shp' 12 | path: 'data/coal-simplified/coal.shp' 13 | 14 | oil: 15 | type: 'shp' 16 | path: 'data/oil-clipped/oil.shp' 17 | 18 | solar: 19 | type: 'shp' 20 | path: 'data/solar-clipped/solar.shp' 21 | 22 | wind: 23 | type: 'shp' 24 | path: 'data/wind-reduced/wind.shp' 25 | -------------------------------------------------------------------------------- /src/jade/index.jade: -------------------------------------------------------------------------------- 1 | doctype html 2 | html 3 | head 4 | meta(charset='utf-8') 5 | meta(http-equiv='X-UA-Compatible', content='IE=edge') 6 | title us-energy-resources 7 | meta(name='description', content='') 8 | meta(name='viewport', content='width=device-width, initial-scale=1') 9 | link(rel='stylesheet', href='css/main.css') 10 | script(src='js/libs/frameMessager.min.js') 11 | 12 | body 13 | div.item-body 14 | div#interactive-content 15 | include thing.jade 16 | script(src='//ajax.googleapis.com/ajax/libs/jquery/1.8.1/jquery.min.js') 17 | script window.jQuery || document.write('