Select to view content in your preferred language

My identify widget does not work

374
2
05-11-2023 08:24 AM
ChesouyeCoye
New Contributor III

I am using the identify widget tutorial and I just changed it up a bit. However it does not work and I am not sure why. Please see my codepen:

https://codepen.io/chesouye/pen/eYProWK

 

please assist. 

0 Kudos
2 Replies
KenBuja
MVP Esteemed Contributor

You're using a FeatureService instead of a tiled MapService that is used in the sample you're modifying. The primary objective of the sample is to show how to populate a popup from this type of service. Instead of using Identify, why not add all the layers as FeatureLayers and utilize their popup functionality?

0 Kudos
ChesouyeCoye
New Contributor III

Ok so I have all my layers as Feature Layers but I was doing research and I wanted to attempt that way. However, I am open to this way you have proposed. How do I go about utilizing this pop up functionality you speak of? 

You can see my code pen here: https://codepen.io/chesouye/pen/ZEqrZwg

0 Kudos