If you have an API key for The Weather Company, you can use this nodejs express based server in the ArcGIS Online Webmap viewer and other apps.
git clone
npm install
npm start
To get a listing of available layerIds
, you can use this call:
http://localhost:8080/layers?apiKey=12345678910
You can add a URL to ArcGIS Online as a Tile Layer. You will need to subsititute the layerId
for the layer you wish to use as well as provide your own apiKey
. Leave the level
, row
, and col
params formatted with curly braces.
Example:
http://localhost:8080/<layerId>/{level}/{row}/{col}/<apiKey>
This service can be quickly deployed and scaled with AWS Lambda using ClaudiaJS. Get Started setting up ClaudiaJS in your environment.
To create the service:
npm run lambda-create
To deploy code updates
npm run lambda-update
By default, AWS Lambda has a 3 second timeout and only 128MB memory. Consider changing the AWS Lambda timeout to a higher time limit (e.g. 60 seconds) as well as add more memory (e.g. 512MB) if needed.