I started with this sample on the ArcGIS JS page. Then I switched the overlay layer to this web service on AGO. I made the following changes
changed the layer type from FeatureLayer to ArcGISDynamicMapServiceLayer
changed the field names to what's listed in map service metadata
The overlay layer is displayed on the map, but no info window pops up when I click on the tract / block group.
I tried:
adding "esri/layers/ArcGISDynamicMapServiceLayer" to the require statement
adding "ArcGISDynamicMapServiceLayer" to the map 'function'
But the overlay layer wouldn't display at all - I removed them
If I download the layer file from the metadata and open it in ArcMap, I'm able to click the features and view the attributes, which suggests/confirms that the map service is capable of returning attributes.
I looked at the other examples of some sort of info window or pop up, but they all contain a FeatureLayer. How do I provide the user with some sort of info / identify pop up when they click on the overlay?
I've uploaded my modified HTML document as a zip file. Thanks for an insight you can provide