Skip to main content
Data visualization APIs 2 min read

Adding the Global Precipitation Layer to Your ArcGIS Online Catalog

article banner Here Layer on Arcgis online

Adding the Global Precipitation Layer to Your ArcGIS Online Catalog

In recent posts, we covered adding HERE basemaps to AGOL and explored the HERE Destination Weather Premium API.

Today, I am combining the ideas from the two to show you how easy it is to add the Global Precipitation layer to your ArcGIS online (AGOL) content catalog using HERE Destination Weather API. 

If you remember, the key difference between accessing HERE Destination Weather API Premium v2 and v3 is in the header definitions, where in V3 if not defined the browser does not understand it is receiving img as a response. Because of this, adding the v3 premium layer to your catalog might not be as straightforward as it seems. So, for this example, I'll be using v2 as it works just as good for this use-case.

Project Prerequisites:

  • A working HERE Weather Premium API key
  • Access to Map Viewer in AGOL

 

Step 1: Test the API Key

Before getting started, make sure your HERE Weather Premium API key is working correctly.

Paste this url in the browser and if the img is returned you are good to go!

Copied
        https://weather.hereapi.com/weather/2.0/tile/9/456/196/2?apiKey={API_KEY}
  

Replace {API_KEY} with your actual key. If the request is successful, it confirms that your Premium access is active. Otherwise, you may need to contact HERE support to verify your API key’s status.

Step 2: Open Map Viewer in AGOL

Navigate to the Add Layer section within the Map Viewer and select Add layer from URL

Add Layer From URL in AGOL

Step 3: Add the Tile Layer

Paste the tile API request url into the Add Layer -> URL section and adjust the layer settings. 

Copied
        https://weather.hereapi.com/weather/2.0/tile/{level}/{col}/{row}/2?apiKey={API_KEY}
  
Add Layer URL Section

Click Next and name the layer. Then click Add to Map and you will have the HERE Global Precipitation layer on your AGOL. 

adding weather layer to agol final

 

Set the necessary layer properties in the Properties panel and Save it to your Content for your organization and yourself to use!

Have fun with geospatial!

AJ

Alberts Jekabsons

Sr. Developer Evangelist

Sign up for our newsletter

Why sign up:

  • Latest offers and discounts
  • Tailored content delivered weekly
  • Exclusive events
  • One click to unsubscribe