Select to view content in your preferred language

Quick Question : Show queried feature class for a layer

4203
2
Jump to solution
01-16-2015 11:16 AM
BrianO_keefe
Honored Contributor

I know I've done this before but I'm drawing a blank (it's Friday, I have more excuses if you need!).

 

I have a layer, let's say it's the Council District layer. In a Flex / Javascript web map is there some way where I can show JUST COUNCIL DISTRICT #1?

 

I feel like I set a setting on the XML in a Flex map once to only display a specific subset of a layer from the MXD? And I feel like this is something I saw in Javascript training for the Web App Builder. But I'm drawing blanks... any suggestions / answers?

0 Kudos
1 Solution

Accepted Solutions
BrianO_keefe
Honored Contributor

What SQL conditions does the sublayer definitionexpression recognize?

In the listed question they use a definition expression in the XML. I had NO idea you could do this. THAT IS AMAZING!

  1. <layer label="WastePoints" type="feature" visible="true" alpha="0.3"                
  2.                definitionexpression="PHOTOS LIKE '%100D63_01.jpg'" 
  3.                url="http://gis01.wch-rcc.com/ArcGIS/rest/services/rkz/waste_images/MapServer/0"/>

THIS is what I was trying to get to. I have a layer that uses categories in the MXD. When it comes over to the Flex map I need to BASICALLY  allow the end user to ONLY see each Catetgory... a definition expression makes this possible.

View solution in original post

0 Kudos
2 Replies
JakeSkinner
Esri Esteemed Contributor

Hi Brian,

If you apply a filter to the feature layer in the web map, this should persist in the WAB application.

0 Kudos
BrianO_keefe
Honored Contributor

What SQL conditions does the sublayer definitionexpression recognize?

In the listed question they use a definition expression in the XML. I had NO idea you could do this. THAT IS AMAZING!

  1. <layer label="WastePoints" type="feature" visible="true" alpha="0.3"                
  2.                definitionexpression="PHOTOS LIKE '%100D63_01.jpg'" 
  3.                url="http://gis01.wch-rcc.com/ArcGIS/rest/services/rkz/waste_images/MapServer/0"/>

THIS is what I was trying to get to. I have a layer that uses categories in the MXD. When it comes over to the Flex map I need to BASICALLY  allow the end user to ONLY see each Catetgory... a definition expression makes this possible.

0 Kudos