ESRI's example code for JS API is not working. Any clue why? (CodePen included)

291
2
Jump to solution
08-18-2021 02:10 PM
GeoDev
by
New Contributor II

CODE: https://codepen.io/ggii/pen/JjNQBYx

TUTORIAL: https://developers.arcgis.com/javascript/latest/add-a-feature-layer/

The code is from these examples. I cannot get any of the FeatureLayer's to show up on the map. They should be hiking trails and icons. I copied and pasted their exact code. Any clue why?

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

@GeoDev , Because you have not inserted your API Key into your codepen code.

https://developers.arcgis.com/documentation/mapping-apis-and-services/security/#api-keys

 

0 Kudos
GeoDev
by
New Contributor II

Thank you! 

0 Kudos