Select to view content in your preferred language

AGOL popups not appearing in js api app

477
1
08-12-2024 10:13 AM
MichelleStuart
Occasional Contributor

This Feature Layer in AGOL (https://www.arcgis.com/home/item.html?id=d26bebb7944d4f7a825a453eca5261b5) has nice popups.  However, when I import this layer into my JSAPI app using 

const fishLayer = new FeatureLayer({portalItem: {id: 'd26bebb7944d4f7a825a453eca5261b5'}, popupEnabled: true})
No popups appear in app. Doesn't even do the loading circle at the point.  It seems silly to create a new layer definition file to recreate the popups that the host of this layer has already taken time to create.  Any idea why these popups won't pop?
 
Using 
"@arcgis/core@~4.29.6":
version "4.29.7"
Tags (3)
0 Kudos
1 Reply
MichelleStuart
Occasional Contributor

To add some more detail to this, if I add a popupTemplate to the above FeatureLayer definition, then it will display when a point is clicked on the ArcGIS JS API custom webapp, but there doesn't appear to be a way to use the popups defined in AGOL.

0 Kudos