All, Here is the next in my line of widgets for the FlexViewer 2.x. The legend portion of this widget is the same code as my dynamic legend widget so, IT IS FOR ARCGIS SERVER 10 OR GREATER ONLY This is just a simple TOC Widget that includes my dynamic legend component. This widget also includes my enhancement for map service transparency, right click context menu for zoom to make layer visible, and my scale dependent renderer for the TOC checkboxes.
import widgets.TOC.WidgetCloseButtonSkin;
<?xml version="1.0" ?> <configuration> <layerlist label="More..." visible="false"> <!-- <excludelayer>TheLabelOfSomeLayerInMainConfig</excludelayer> --> </layerlist> </configuration>
<tocSettings> <expanded>false</expanded> </tocSettings>
<excludeBasemapLayers>true</excludeBasemapLayers>
<configuration> <labels> <visibilitylabel>Layer Visibility</visibilitylabel> <legendlabel>Show Dynamic Map Legend</legendlabel> </labels> <servicelabel>Parcel Data</servicelabel> <servicelabel>Aerial Photography</servicelabel> <tocSettings> <expanded>false</expanded> </tocSettings> <excludeLayers> <excludeLayer mapservice="Parcel Data">68</excludeLayer> </excludeLayers> <excludeGraphicLayers>true</excludeGraphicLayers> <excludeBasemapLayers>true</excludeBasemapLayers> </configuration>
Dan, Thanks for pointing this out. I have it fixed in Version 2.2.1 available now.
/* wTemplate.addTitlebarButton(ICON_URL + "i_folder.png", visibilityLabel, showStateVisibility); */ //<----------Legend Work //Add the new legend button /* wTemplate.addTitlebarButton(ICON_URL + "i_legend2.png", legendLabel, showStateLegend); legendAC = new ArrayCollection([]); removeMapListeners(); addMapListeners(); registerAllMapLayers(); */ //<----------End Legend Work
//wTemplate.addTitlebarButton(ICON_URL + "i_folder.png", visibilityLabel, showStateVisibility); //<----------Legend Work //Add the new legend button //wTemplate.addTitlebarButton(ICON_URL + "i_legend2.png", legendLabel, showStateLegend); legendAC = new ArrayCollection([]); removeMapListeners(); addMapListeners(); registerAllMapLayers(); //<----------End Legend Work
Giuseppe, My legend definitely ignores rasters.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.