I am using MapImageLayer to load the map and I want to display the popup on click on the highlighted graphic symbol.
I see samples to display Popup in the documentation and I would like to show output as displayed in https://developers.arcgis.com/javascript/latest/sample-code/popup-custom-action/ sample. However, it adds feature layer to the map.
The questions are:
1) Can I use Arcade expression without adding feature layer on the map?
2) Is there any better way than going through the for loop and specifying the content to the PopupTemplate? See my code to highlight the feature https://codepen.io/b2810s/pen/zYmmNgB .
3) How does the style and formatting is displayed in the given sample. Is it a default popup style when the feature layer is added to the map?
Solved! Go to Solution.
This is related to your other question and solution - if you create a client side featureLayer you'll be able to query the layerview directly and avoid any looping to create graphics and get the info to populate the Popup.
This is related to your other question and solution - if you create a client side featureLayer you'll be able to query the layerview directly and avoid any looping to create graphics and get the info to populate the Popup.
Correct, it will work for me, thanks!