Select to view content in your preferred language

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

676
2
Jump to solution
08-18-2021 02:10 PM
GeoDev
by
Emerging Contributor

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 Emeritus
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

@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
Emerging Contributor

Thank you! 

0 Kudos