Select to view content in your preferred language

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

1857
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
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
George,

   Your issue is going to be that I don't go backwards to correct and issue in an older version of my widgets unless it is a REAL show stopper. The reverse order of the layers is something I can fix in the 3.3.1 version of this widget though.

View solution in original post

0 Kudos
13 Replies
RobertScheitlin__GISP
MVP Emeritus
George,

   Your issue is going to be that I don't go backwards to correct and issue in an older version of my widgets unless it is a REAL show stopper. The reverse order of the layers is something I can fix in the 3.3.1 version of this widget though.
0 Kudos
GeorgeHaskett
Deactivated User
That would be great. 

I try to keep everything up to date, however I probably will not update to 3.3 for the viewer until next month.  Granted if you can fix that then its another sound arguement to update my apps.

Thanks,

Haskett
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
George,

   There is an exciting new version of the widget available:

Version 3.6.1 - Feb 18, 2014
* Added support for freezing the swipe or spotlight mask. What this means is can let go of the mouse during a swipe or spotlight and the mask will remain frozen on the screen until you click again or press the esc button on the keyboard.
* Added the diagonalswipeenabled tag in the xml.
* Added the freezelayermask tag to the xml. This sets the checkbox on the Swipe widget GUI to true or false.
* Added support for multiple layers added to the map using the same label. This mean you can swipe or spotlight basemaps with reference layers and operational layers that have the same label for multiple layers.
* Redesigned the GUI to allow selecting the top and the bottom layer for the swipe or spotlight operations. Setting the layer in the top and bottom drop down lists will move that layer to the top or the bottom of the map respectively.
* When the widget is opened the order and visibility of all map layers are recorded and when the widget is closed they are reset to this original order/visibility.
* Depreciated the askaboutturningonlayer tag as now layers are set to visible by default when chosen in the top or bottom layer.
0 Kudos
BrianFrizzelle
Emerging Contributor
I'm testing out the Swipe Spotlight Widget in App Builder 3.6. It works incredibly well, but when I close it my top layer disappears. It's almost as if it's setting the transparency to 100%, because my popups still work. Any idea why this is happening?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Brian,

   I have not seen that issue. When the widget is opened it records the visibility of each layer in your map and then when it closes it resets all the layers visibility to what it was when the widget was initially opened.
0 Kudos
BrianFrizzelle
Emerging Contributor
I discovered the source of the problem, but not the solution.

When I click the dropdown menus for Top Layer and Bottom Layer, my default basemap (Light Gray Canvas) is listed at the top, above all of my operational layers. So when I close the widget, it reorders that basemap on top of all other layers.

All other basemaps appear at the bottom of those two dropdown menus, so if I change the basemap my operational layers show up again.

I tried moving my <basemaps> section of code below my <operationallayers> section but that didn't make any difference.

Any thoughts on this?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Brian,

  Can you share your main config.xml (you will need to zip it, before you will be able to attach it)?
0 Kudos
BrianFrizzelle
Emerging Contributor
Here's the config file. I checked it again and verified that closing the Swipe Spotlight Widget makes the dynamic layers disappear. I believe they are simply ordered below the gray canvas.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Brian,

   The problem is manually specifying the Light Gray Canvas as the base map places the Light Gray Canvas Reference Layer as the top of the map and the Light Gray Canvas main layer at the bottom of the map and all the operational layer in between some where. When I go to reorder the map once the widget is closed I search for the map layers based on layer Id and I find that the Light Gray Canvas (the refference layer but it is called the same as the tiled layer) is suppose to be at the very top of the map so I do just that and move the Light Gray Canvas to the top, thus covering all your operational layers. I have not come up with a good solution to handle this yet. So for now your only work around is to not manually specify the Light Gray Canvas as your default basemap or not use the Swipe Widget with that configuration.
0 Kudos