Select to view content in your preferred language

Making info box appear in Flexviewer

1130
3
07-28-2010 02:16 PM
PeteVitt
Frequent Contributor
I'm trying to get the info box to work on my service

Config.xml
<operationallayers>
<layer label="Monitoring Programs" type="dynamic" visible="true"  alpha="1"
   info="widgets/InfoTemplates/SimpleInfoWinWidget.swf"
   infoconfig="widgets/InfoTemplates/IWT_MP.xml"
                        url="http://www.myserver/ArcGIS/rest/services/HCMP/MapServer"/>
</operationallayers>


I've set IWT_MP.xml to include the fields in the layer I want to id

my question is how does the widget know which layer to use?  If I specify the layer after the MapServer like: MapServer/0 then the layer doesnt appear

is there documentation I'm missing that explains the operational layer tags

Thanks

Pete
Tags (2)
0 Kudos
3 Replies
SimonMorgan
Frequent Contributor
You need to use a feature service. If you have the editor widget enabled in your application an dyou don't want to have some layers editable, you can go into the service properties and turn on editing but leave query turned on.

The problem I have foudn is that this causes each layer you list as a feature layer to be listed in the map switcher. So I published the service twice. Once just as a mapserver and once with both map and feature enabled. The second service has all the symbology set to no color and is excluded from the map switcher widget.

This is not a very elegant solution, but this particular configuration only has a handful of layers, so this solution may not work for you.
0 Kudos
PeteVitt
Frequent Contributor
I tried the feature service but am still getting the same behavior.  The map service and feature service are valid as the appear on ArcGIS Map.com.  The ID tool ArcGIS Map.com is greyed out -- maybe there is something else I need to set in the service?

Thanks for the response

pete
0 Kudos
PeteVitt
Frequent Contributor
its working now -- needed to change type to "feature"
0 Kudos