https://github.com/tomwayson/hub-scripts
Node scripts for working with ArcGIS Hub
https://github.com/tomwayson/hub-scripts
Last synced: 4 months ago
JSON representation
Node scripts for working with ArcGIS Hub
- Host: GitHub
- URL: https://github.com/tomwayson/hub-scripts
- Owner: tomwayson
- License: apache-2.0
- Created: 2019-07-13T03:14:01.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-25T06:33:03.000Z (almost 4 years ago)
- Last Synced: 2025-10-19T16:52:46.715Z (8 months ago)
- Language: JavaScript
- Size: 116 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Hub Scripts
Node scripts for working with ArcGIS Hub.
## Install
`npm install`
## Running the scripts
### Find v1.x Web Maps
The scripts in the `web-maps` folder find public web maps used by ArcGIS Hub that do not declare a version of at least v2.x of the [web map spec](https://developers.arcgis.com/web-map-specification/). The ArcGIS JS API v4.x. will only render v2.x web maps.
To find public v1.x web maps in the Hub index (i.e. in "Open Data" groups) run: `node ./web-maps/datasets.js`.
To find public v1.x web maps used in public Hub sites run `node ./web-maps/sites.js`.
To find public v1.x web maps used in public Hub pages, update the `type` variable in `sites.js` and run `node ./web-maps/sites.js`.
All scripts write the output in CSV format to a file in the `./web-maps/output` directory.