Select to view content in your preferred language

Operational layers within the FlexViewer 2.1

754
3
10-15-2010 06:05 AM
PaulLang
Deactivated User
I would like to create a TOC within the FlexViewer 2.1.  
This is how I did it in Flex 3.0:
<flexScript:DragPanel id="panelTOC" creationComplete="myPanelCCHandler(event);" title="Table of Contents"  cornerRadius="20"
  width="250" height="573" backgroundAlpha="0.75" borderColor="#FFFFFF" x="46" y="11">
  <ns1:TOCAccordion  enabled="true" mouseOut="setTOCout();" mouseOver="setTOCover();" resizeToContent="true" id="accordinTOC"
    map="{MainMap}" width="219" height="509" useLayerFadeEffect="true" labelFunction="{layerLabelFunc}"  verticalGap="2"
    horizontalGap="2" paddingLeft="10" borderThickness="0" borderStyle="none" alpha="0.4" themeColor="#FFFFFF" borderColor="#FFFFFF">
    <ns1:categories>
    <!-- Each TOC category contains a label and an array of layer IDs. -->
    <!--<mx:Object label="Themes" layers="[anno,physical,salesParcels,Parcels,topom,municipal,publicSafety,natural,taxbase]"/>-->
    <mx:Object label="Base Map" layers="[Parcels]" id="TOCstart"/>
    <mx:Object label="Annotation" layers="[anno]"/>
    <mx:Object label="Physical" layers="[physical]"/>
    <mx:Object label="Parcel Sales" layers="[salesParcels]"/>
    <mx:Object label="Topography" layers="[topo]"/>
    <mx:Object label="Municipal" layers="[municipal]"/>
    <mx:Object label="Public Safety" layers="[publicSafety]"/>
    <mx:Object label="Natural" layers="[natural]"/>
    <mx:Object label="Tax Base" layers="[taxbase]"/>
   </ns1:categories>
  </ns1:TOCAccordion>
</flexScript:DragPanel>

Is the Config.xml  (Operational layers) the place you put your layers to get the TOC effect?
Tags (2)
0 Kudos
3 Replies
PaulLang
Deactivated User
Use the LayerListWidget!
0 Kudos
PaulLang
Deactivated User
0 Kudos
AlexGray
Deactivated User
Hey Paul,

I am just looking into using Flex and wondered if your data was reprojected to Web Mercator in order to overlay onto ARCGIS services?

You don't happen to know how to set it so one can use their data in its original projection do you?

Thanks,
Alex
0 Kudos