Highlight Features / Selection

80
3
Jump to solution
02-21-2020 12:57 PM
Highlighted
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??????

Reply
0 Kudos
1 Solution

Accepted Solutions
Highlighted
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

Reply
0 Kudos
3 Replies
Highlighted
Frequent Contributor
Reply
0 Kudos
Highlighted
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

Reply
0 Kudos
Highlighted
Frequent Contributor

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

Thanks Robert

Reply
0 Kudos