Filter feature layer with JavaScript in a custom WAB application

1369
2
04-27-2016 11:11 AM
JugalPatel
New Contributor II

Let's say I have a map created on ArcGIS desktop and I publish it as a feature service to ArcGIS online. In the ArcGIS online interface, I can filter that feature service layer into three separate layers. I can then take those layers and use them for a WAB application. I need to customize the WAB app though, so I downloaded all the files and code that builds my app. But do you know how I can filter the original feature layer using JavaScript instead? Specifically, I have all my files for my web app stored locally, but I'm not sure which file I'd need to do that filtering in.

0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Jugal,

  Not sure what you mean by filtering but the MapManager.js is the file that handles all things dealing with the map.

0 Kudos
JugalPatel
New Contributor II

Hey Robert,

It basically has to do with this thread​. Essentially, I tried going the Maplex route mentioned by Adrian and Benjamin but I'm having trouble transferring the Maplex configuration from the desktop side to the AGOL side, so I'm seeing if I can solve this problem programmatically.

0 Kudos