Giuseppe, I have not documented this widget like some of my others (probably need to). Here is a link to thread that explains how to setup the metadata description for a layer in a map service:http://forums.arcgis.com/threads/18453-Table-of-Contents-Legend-Widget-for-FlexViewer-2.x?p=111587&viewfull=1#post111587As far as Icons not showing up...? Are you using the compiled or uncompiled?As far as changing the size of the widget that is simple in Flex Viewer 2.5 as all you need to do is add a width and height to the widget in the main config.xml
Giuseppe, So as far as the assets you need to make sure you have this exact path: src\widgets\TOC\assets\images. All the assets that this widget needs are found in that folder.For the Description button and the horizontal scroll issues you are having, please post a new thread. Now that the MVP program is back I don't like to continue to answer on these muti page forum posts as I have in the past.
First... thank you so much for all your apps!!Question... I believe I am missing something very basic. I have the newest version and it displays the TOC and legend perfectly, however i cannot seam to find where to activate the tool tip that allows transparency, layer order, etc.I am using the complied version with no changes. Any suggestions?
} else if (layer is FeatureLayer) { var msName:String = FeatureLayer(layer).url.replace("FeatureServer","MapServer"); if(msName.substring(msName.length - 9) != "MapServer") { var arc:ArcGISDynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer(msName.substring(0,msName.lastIndexOf("/"))); if(arc.loaded){ tocItem.ttooltip = arc.serviceDescription }else{ ready = false; arc.addEventListener(LayerEvent.LOAD, function(event:LayerEvent):void{ tocItem.ttooltip = ArcGISDynamicMapServiceLayer(event.layer).serviceDescription; _tocRoots.addItemAt(tocItem, 0); if(_expanded) expandItem(tocItem, true, true, false, null); }); } } }
Robert,Thanks for this script and all the others - they are all very useful.I've searched through the files looking for a way to get feature layers to list after the dynamic layers - can you direct me to the file(s) where this is rendered. I've messed around in TocMapLayerItem.as reordering places where FeatureLayers are processed after ArcGISDynamicMapServiceLayers, but I'm grasping at straws and while I haven't broke anything, it hasn't changed the output with Feature layers always being listed on top of Dynamic layers regardless of their order in the config.xml.Thanks,Jim
public function CheckBoxScaleDependant() { setStyle("icon", CheckBoxScaleDependantIcon); setStyle("checked", this.selected); setStyle("scaledependant", _scaledependant); setStyle("themeColor", FlexGlobals.topLevelApplication.getStyle("accentColor")); setStyle("iconColor", FlexGlobals.topLevelApplication.getStyle("accentColor")); }
Hi Robert,Some of the external map services I rely on are not running ArcGIS Server 10 so as per your documentation, I am still using version 2.4.0 of your TOC widget. Sorry, I would love to upgrade otherwise! Possibly because these services aren't using ArcGIS Server 10, the "Show Description" button does not appear for these services, only for my internal services. I'm wondering (a) if anything can be done about this, and (b) if not, could I somehow set up a work-around where the button links to a pop-up I populate myself instead of the ArcGIS Manager Map Service Description. Is this something that you could help me with?Thanks so much,Allison
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.