Hello! I am trying to add the ESRI subscription terrain layer using an API Key generated in our ArcGIS Online organizational account.
https://esri.maps.arcgis.com/home/item.html?id=58a541efc59545e6b7137f961d7de883
I am attempting to add a portal item to a web map using the Javascript API and using the 'apiKey' parameter in the constructor and using the API Key. No matter what I try I still get a login prompt when the layer tries to load. Is it possible to use layers marked with 'Subscriber' and API keys?
Any help would be great!
Thanks!