Select to view content in your preferred language

Docked TOC/Legend/Map Contents/Layer List  Question

2428
1
11-07-2012 08:16 AM
TanyaOwens
Frequent Contributor
Hi all,

I am looking for a Viewer Widget or a way to configure the Layer List widget to be docked on the side like the map contents in the Silverlight Viewer - see example: http://gismaps.pagnet.org/TAZ/. Does anyone have any suggestions on how to do this.

Thanks!
Tags (2)
0 Kudos
1 Reply
MarcinDruzgala
Frequent Contributor
Well I think it is possible. Few steps:
1.Config.xml map tag -> set left="xxx" (lest say xxx = 200)
2.Move the NavigationWidget and CoordinateWidget from left for 205 pixels.
3.Find your legendwidget tag in config.xml and set -> left="0" top="top_value_for_your_map_tag"(default is 40) + preload="open"
4.LegendWidget.mxml ->
 <viewer:WidgetTemplate width="200" height="{map.height}"
                           minHeight="300"
                           minWidth="200">
        <esri:Legend id="myLegend"
                     width="100%" height="100%"
                     top="10"
                     respectCurrentMapScale="{respectCurrentMapScale}"/>
    </viewer:WidgetTemplate>

Now what you have to do is:
- set the resizeable parameter for legend widget to false(for some reason when I try to do it some error occurs)
- set the draggable for your widget to false(didn't work for me don't know why...?)
- remove the 'close' and 'minimize' buttons from this widget(that won't be easy - but i think it's possible)

See the attachment. Now you will have to find solutions for 'resizeable' and 'draggable' problems - so the user won't be able to move or resize the widget, good luck with that 😉

Cheers
MDruzgala
0 Kudos