laptop and a wrench

Bug

An ArcGIS Maps SDK for JavaScript app fails to load public layers in a web map when using an API key with a referrer.

ArcGIS Maps SDK for JavaScript
Bug ID Number BUG-000174423
SubmittedFebruary 19, 2025
Last ModifiedAugust 7, 2025
Applies toArcGIS Maps SDK for JavaScript
Version found4.31
Operating SystemWindows OS
Operating System Version11.0 64 bit
StatusIn Review

Workaround

Set the API key for every individual feature layer. However, this does not allow adding all the private and public layers in the same web map. Here is the sample for the workaround: https://codepen.io/shlwagle/pen/YPKgBXJ

Steps to Reproduce

Bug ID: BUG-000174423

Software:

  • ArcGIS Maps SDK for JavaScript

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options