How we can make a group of layers?

4929
25
Jump to solution
07-28-2014 11:08 AM
anjelinaponkerat
Frequent Contributor

Hi

I have 32 layers in my flex application.Is there any way to make groups of these layers like ArcGIS Desktop?

I can not do this in ARCGIS DESKTOP, because some layers are cashed and some layers are dynamic.

Regards

0 Kudos
1 Solution

Accepted Solutions
AnthonyGiles
Honored Contributor


Yes, the config that is supplied with the widget works with the default config file when you download the viewer using the fires and demographic layers

View solution in original post

25 Replies
RobertScheitlin__GISP
MVP Emeritus

Anjelina,

   Many have requested this but it is not an option in Flex Viewer. There was a widget back several versions ago that sort of did this but it is not compatible with the current versions.

anjelinaponkerat
Frequent Contributor

What is  the name of that widget?

If it is not compatible with flex 3.6, is there other solution?

Regards

0 Kudos
AnthonyGiles
Honored Contributor

Anjelina,

the the source code for the widget can be found here:

WestonSF/ArcGISFlexViewerTOCGroupWidget · GitHub

but it will require you to have the ability to compile source code

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Anjelina,

   Something like the group toc but no there is no solution for 3.6

0 Kudos
anjelinaponkerat
Frequent Contributor

Do you can help me more, or write a widget?

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Angelina,

   Nope this one is way to complicated and involved.

anjelinaponkerat
Frequent Contributor

I,m looking for a expert flex developer.  my email is:

anjelinaponkerat@gmail.com

0 Kudos
anjelinaponkerat
Frequent Contributor

I,m looking for an expert flex developer.  my email is:

anjelinaponkerat@gmail.com

0 Kudos
AnthonyGiles
Honored Contributor

Anjelina,

I have recompiled the widget for 3.6 (attached zip file). You will not be able to use it with the web app builder so you will have to add the widget to the config file manually:

<widget label="Layers" right="10" bottom="10" preload="open"

                icon="assets/images/Legend32.png"

                config="widgets/TOCGroup/TOCGroupWidget.xml"

                url="widgets/TOCGroup/TOCGroupWidget.swf"/>

then amend the widget config for your layers it should be pretty much self explainatry

Regards

Anthony