AnsweredAssumed Answered

Enable default popup of a map service

Question asked by zahid.mia on May 28, 2019
Latest reply on May 29, 2019 by EPolle_TensingInternational

I am an AGOL beginner and looking for to create HTML file similar to AGOL map. When I add a map service into AGOL map (http://arcg.is/1iqvOu ) it shows the popups. However, I can't view any popup after adding a feature layer into a a html map as below (please see the attachement):

 

var featureLayer = new FeatureLayer({ url: "xxxxxxxxx"}); map.add(featureLayer);

 

How can I enable the default popup without any customisation. I have hundreds of layer and don't like to define the popup for each layer, but prefer to have the popup just same as checking "

 

Modifying the html is highly appreciated.

Attachments

Outcomes