Select to view content in your preferred language

Swipe Spotlight Widget - How can I reorder the active layer list?

1856
13
Jump to solution
06-13-2013 11:41 AM
GeorgeHaskett
Deactivated User
I am using the 3.2 compiled version of the Viewer for Flex and the Swipe Spotlight Widget.

Is it possible to reorder the list of active layers in the drop down box? 

Currently the active drop down list in my widget is backwards.  It is in the exact opposite order as my main list in the config file.

Thanks for any suggestions.

Haskett
Tags (2)
0 Kudos
13 Replies
MohammedKhamis
Emerging Contributor
Dear Robert Scheitlin & Brian, & George Haskett ,

I'm testing out the Swipe Spotlight Widget in App Builder 3.6.
It works incredibly well , but when I click Top layer appears many features I dont know whats!! , however  they are not working ,    and all services appear with basemaps ..


How can I remove that features from Swipe ???

You can see attached , image what I see .

many thanks & Regards,
Mohammed
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohammed,

   The only layer types that I exclude from those lists are graphics layers. Those layers are listed as FeatureLayers so they are layers that should be listed in the drop down. What does your main config.xml look like can you attach it (you should zip it up first and then attach). The widget does have the ability for you to specify layer to not include but you will first have to know their names.
0 Kudos
MohammedKhamis
Emerging Contributor
Dear Robert Scheitlin,

I see , when I click ( on ) widget be shown when the application starts , they featureslayers disappers from layer top .
with all Services and Basemaps appear on it .

But ,
when I click ( off ) widget be shown when the application starts , they featureslayers appers from layer top .
with all Services and Basemaps appear on it .


I think , the problem is open at start (ON/off) ..

please find the attached .


Regards,

Mohammed
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Mohammed,

    The widget is doing exactly what it is suppose to be doing. It is suppose to add basemaps (if you have the usebasemaps option as true) and it is adding all operational layer, widget result layers (when they are featurelayers and not graphical layer). So I am not sure what you are asking. If you are not wanting those layers in the list then you already have a mechanism to exclude them using the excludelayers tag. Also the screenshot that you posted of widget shows the 3.6 version (that has the dropdown to top and bottom. But the screenshot of the App Builder and the zipped SwipeSpotLightWidget.xml are from version 3.5...
0 Kudos