Select to view content in your preferred language

Move Up/Down Function in LayerList Widget is Acting Strange

957
3
Jump to solution
07-31-2013 12:08 AM
JoeHewitt
Regular Contributor
Hello,

When I attempt to move a layer up or down in my LayerList Widget and also inside the "More.." button, the layer interacts very strangely.

Initially clicking move down will move the layer down one place. If I choose to move it down again it will jump about 4 places in the list, moving it up is no problem unless it has been moved up twice already and then it can go up no further.

the order of the list correctly alters the layer drawing order fine. But just the sporadic jumps in the list that baffle me.






Anyone have a similar scenario or solution?
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MehulChoksey
Esri Contributor
Thanks for reporting this bug. Created issue on github:
https://github.com/Esri/arcgis-viewer-flex/issues/181

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus
Joe,

    Do you have the TOC Widget or the enhanced Layer List Widget or the Layerlist widget in your app? If you are using any of these widgets they can cause this behavior in the Map Switchers "More" control. You are advised to disable the More Button by setting it's visibility to false in the MapSwitcherWidget.xml

<layerlist visible="false">
0 Kudos
RhettZufelt
MVP Notable Contributor
Also, if you have added a service using the MapServices widget, it will "confuse" things as well.

Well, just tested this a little more.

have a fv34 app with nav, overview, coordinate, headercontroller and layerlist widgets, and no others.

I still get this weird behaviour.  If I click, move down, it works fine, if I tell the same layer to move down again, or for that matter, tell it to move up, it will jump down 5 positions.  Doesn't matter which way I tell it to move, after the second click, it will jump down like 5 positions.  Once it moves all the way to the bottom, the move up will work again twice, then will ignore all the move ups you send it until you move down again..

R_

seems to do it in fv33 as well.  However, my FV31 project works fine until I add a layer using MapServices widget, and load at bottom, then it behaves the similar
0 Kudos
MehulChoksey
Esri Contributor
Thanks for reporting this bug. Created issue on github:
https://github.com/Esri/arcgis-viewer-flex/issues/181
0 Kudos