Update documentation from OS contributors (#1657)

* Update documentation from OS contributors

* Disable markdown links checks for certain links

* Disable expired links
This commit is contained in:
Vim 2022-05-27 18:17:17 -04:00 committed by GitHub
commit 6ba17b544d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 90 additions and 41 deletions

View file

@ -26,6 +26,19 @@ If you install NVM using Homebrew, make sure to read the output in terminal afte
Once you install NVM, don't forget to install Node! This is included in the linked tutorial above. This will also install `npm` which you need for the steps below.
After you've downloaded the nvm and the latest node (using the above steps) also install node version 14 by:
`brew install node@14`
You should then be able to switch to that version of node by:
`nvm use 14`
To validate you are using node 14, type:
`node -v`
This should return *Now using node 14.x.x (npm v6.x.x)*
#### Install Yarn
Install yarn if you do not have it yet. Open your terminal and run `sudo npm install -global yarn`. This works on MacOS and Win10. To confirm it is installed, run `yarn -v`. A version number should be returned.

View file

@ -51,7 +51,13 @@ If the file is super big we can just look at the head of the file:
In order to see the json file in a pretty format, pipe to jq:
- `tippecanoe-decode d3_313.pbf 3 1 3 | head -40 | jq`
- `tippecanoe-decode d3_313.pbf 3 1 3 | jq`
While to view just a portion of the feature tile (note we're using a high zoom tile in this example):
- `tippecanoe-decode d3_9_138_206.pbf 9 138 206 | jq .features | head -100`
This will filter the decoded pbf by the `features` key and then show the first element in the feature array.
When the map is clicked, the data (aka features - which are sets of properties in the geojson file ) of the map are able to be accessed via the MapEvent. See [j40Map.tsx](https://github.com/usds/justice40-tool/blob/main/client/src/components/J40Map.tsx)'s `onClick` method for more details.