Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Sample] Add geoarrow sample for kepler 3.0 #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@ The data provided in this repo is public and located at the following URLs:
- [2017 Unemployment Rates for U.S. Counties](./county_unemployment)

This dataset contains 2017 labor force information from the [Bureau of Labor Statistics](https://www.bls.gov/lau/#tables) joined with county shapefiles from the [Census Bureau](https://www.census.gov/geo/maps-data/data/cbf/cbf_counties.html).

- [Block-level Earnings New York City (GeoArrow)](./nyc_earnings)

This GeoArrow dataset contains block-level earnings data of New York City from 2002 to 2014. The map is a Quantile map based on the total number of jobs in year 2000-2002. Data is prepared by [the Center for Spatial Data Science at University of Chicago](https://spatial.uchicago.edu). Data source: [CSDS](https://geodacenter.github.io/data-and-lab/LEHD_Data/).
146 changes: 146 additions & 0 deletions nyc_earnings/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
{
"version": "v1",
"config": {
"visState": {
"filters": [],
"layers": [
{
"id": "hkc2hq",
"type": "geojson",
"config": {
"dataId": "-svoeb1",
"label": "nyc",
"color": [255, 203, 153],
"highlightColor": [252, 242, 26, 255],
"columns": { "geojson": "geometry" },
"isVisible": true,
"visConfig": {
"opacity": 0.8,
"strokeOpacity": 0.8,
"thickness": 0.1,
"strokeColor": [241, 241, 241],
"colorRange": {
"name": "UberPool 6",
"type": "diverging",
"category": "Uber",
"colors": [
"#213E9A",
"#551EAD",
"#C019BD",
"#D31256",
"#E6470A",
"#F9E200"
]
},
"strokeColorRange": {
"name": "Global Warming",
"type": "sequential",
"category": "Uber",
"colors": [
"#5A1846",
"#900C3F",
"#C70039",
"#E3611C",
"#F1920E",
"#FFC300"
]
},
"radius": 10,
"sizeRange": [0, 10],
"radiusRange": [0, 50],
"heightRange": [0, 500],
"elevationScale": 5,
"enableElevationZoomFactor": true,
"stroked": true,
"filled": true,
"enable3d": false,
"wireframe": false
},
"hidden": false,
"textLabel": [
{
"field": null,
"color": [255, 255, 255],
"size": 18,
"offset": [0, 0],
"anchor": "start",
"alignment": "center",
"outlineWidth": 0,
"outlineColor": [255, 0, 0, 255],
"background": false,
"backgroundColor": [0, 0, 200, 255]
}
]
},
"visualChannels": {
"colorField": { "name": "C000_02", "type": "integer" },
"colorScale": "quantile",
"strokeColorField": null,
"strokeColorScale": "quantile",
"sizeField": null,
"sizeScale": "linear",
"heightField": null,
"heightScale": "linear",
"radiusField": null,
"radiusScale": "linear"
}
}
],
"effects": [],
"interactionConfig": {
"tooltip": {
"fieldsToShow": {
"-svoeb1": [
{ "name": "STATEFP10", "format": null },
{ "name": "COUNTYFP10", "format": null },
{ "name": "TRACTCE10", "format": null },
{ "name": "BLOCKCE10", "format": null },
{ "name": "GEOID10", "format": null }
]
},
"compareMode": false,
"compareType": "absolute",
"enabled": true
},
"brush": { "size": 0.5, "enabled": false },
"geocoder": { "enabled": false },
"coordinate": { "enabled": false }
},
"layerBlending": "normal",
"overlayBlending": "normal",
"splitMaps": [],
"animationConfig": { "currentTime": null, "speed": 1 },
"editor": { "features": [], "visible": true }
},
"mapState": {
"bearing": 0,
"dragRotate": false,
"latitude": 40.94962909781395,
"longitude": -73.09033390902026,
"pitch": 0,
"zoom": 8.828968302163942,
"isSplit": false,
"isViewportSynced": true,
"isZoomLocked": false,
"splitMapViewports": []
},
"mapStyle": {
"styleType": "dark",
"topLayerGroups": { "label": true },
"visibleLayerGroups": {
"label": true,
"road": true,
"border": false,
"building": true,
"water": true,
"land": true,
"3d building": false
},
"threeDBuildingColor": [
9.665468314072013, 17.18305478057247, 31.1442867897876
],
"backgroundColor": [255, 255, 255],
"mapStyles": {}
}
}
}
Binary file added nyc_earnings/data.arrow
Binary file not shown.
Binary file added nyc_earnings/nyc-earnings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,5 +126,17 @@
"description": "2017 Labor force information for U.S. Counties",
"visible": false,
"keplergl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/usdot/keplergl.json"
},
{
"id": "nyc_earnings",
"label": "Block-level Earnings New York City (GeoArrow)",
"queryType": "sample",
"imageUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyc_earnings/nyc-earnings.png",
"description": "Block-level Earnings New York City (2002-14) from Longitudinal Employer-Household Dynamics (LEHD). Geographic units: 2010 Census blocks.",
"detail": " This GeoArrow dataset contains block-level earnings data of New York City from 2002 to 2014. The map is a Quantile map based on the total number of jobs in year 2000-2002. Data is prepared by [the Center for Spatial Data Science at University of Chicago](https://spatial.uchicago.edu). Data source [page](https://geodacenter.github.io/data-and-lab/LEHD_Data/).",
"size": 108487,
"visible": true,
"dataUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyc_earnings/data.arrow",
"configUrl": "https://raw.githubusercontent.com/uber-web/kepler.gl-data/master/nyc_earnings/config.json"
}
]