Highlight Features / Selection

181
3
Jump to solution
02-21-2020 12:57 PM
jaykapalczynski
Frequent Contributor

I am modifying this example: ArcGIS API for JavaScript Sandbox 

1. I changed the data source

2. I added a couple text boxes to return the results of the selected

For some reason, which I cannot figure out, I am only returning the OBJECTID....none of the other fields are being returned.

I created this JSFiddle to show my mods....Edit fiddle - JSFiddle - Code Playground 

Anyone out there see why all the other fields are not showing up??????

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Esteemed Contributor

Jay,

   You need to specify outFields in the FeatureLayer constructor.

        csvLayer = new FeatureLayer({
            title: "Counties",
            url: url,
            outFields: ["*"],
            popupTemplate: {
...

View solution in original post

0 Kudos
3 Replies
jaykapalczynski
Frequent Contributor
0 Kudos
RobertScheitlin__GISP
MVP Esteemed Contributor

Jay,

   You need to specify outFields in the FeatureLayer constructor.

        csvLayer = new FeatureLayer({
            title: "Counties",
            url: url,
            outFields: ["*"],
            popupTemplate: {
...
0 Kudos
jaykapalczynski
Frequent Contributor

How did I miss that.....oh man....

Thanks Robert

0 Kudos