What I need is to take layers that I don't need out of list completely since with "dynamic" type you see the list of all layers that is coming from mxd.
Legend widget honours visiblelayers attribute set on the layers tag (type dynamic) so the sublayer wont display in the legend widgetin example below, sublayers 2 and 3 will be displayed on the map and legend.e.g <layer type="dynamic" label="Military" url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Military/MapServer" visible="true" visiblelayers="2,3"/>
<layer type="dynamic" label="Military" url="http://sampleserver6.arcgisonline.com/arcgis/rest/services/Military/MapServer" visible="true" visiblelayers="2,3"/>
I need to show the subset of layers from mxd/service so the rest of layers should not appear at all in the legend list.
Out of curiosity, do you know why symbols get symplified with "feature" option? Still not clear why raster refuses to show. I know that "feature" in config file is not equal "feature" as data type in ArcGIS so raster supposed to be OK.
Symbols get simplified when using FeatureService.1. You could try using MapService and control the sublayer's visibility by visiblelayers attribute of the layer tag.2.if you want to show subset of feature sof layer, you could filter that by definitionexpression attribute of the layer tag.see http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Layer_tag/01m30000000p000000/3. For clicking on a feature to see its attributes, you could define popup on that layer for type "feature"/and sublayer.for type "dynamic"hope this helps.Mehul
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.