layer definition in agsjs.dijit.TOC

335
1
05-31-2013 09:04 PM
masayumasayu
New Contributor
Hi all,

    I am using this TOC http://gmaps-utility-gis.googlecode..../examples.html
    I want to filter the information display on map.. using this example http://developers.arcgis.com/en/javascript/jssamples/map_multiplelayerdef.html
    It is success when i refresh my map..the prob is when i toggle on/of my TOC, it display all info that i want to hide
    Plz help me..
0 Kudos
1 Reply
NianweiLiu
Occasional Contributor II
The TOC has a feature that produce check box for unique value renderer, so you can avoid creating many layers, each one for a particular type. This feature uses layer definition to manage the visibility of each unique value. It's possible that it ignored layer definition set externally. You could either try to fix it in the source code to honor externally set definition, or comment out all code that set layer definition inside the TOC.
0 Kudos