Select to view content in your preferred language

Layers widget radio button options

880
5
Jump to solution
03-14-2014 11:51 AM
RudieWatzig
Regular Contributor
Hello,

Is there a way to change what happens when the "description" button is pressed?  Can I just have it do a popup window instead, with some custom text?
[ATTACH=CONFIG]32209[/ATTACH]

Also, is it possible, on opening the app, to have this widget in a specific fixed location, and not covering up my navigation bar?

Thank you so much for your help.

Rudie
DOGAMI
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Rudie,

    To get the description in a popup/dialog window you will have to use my eLayerList widget and not the default esri layerList widget.

http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18

As far as positioning widgets at a specific location you can set the left, right, top, and bottom attributes of any widget as covered in the docs. Look for "Attributes for widget position" in the link below:

http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m30000001w000000.htm

View solution in original post

0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus
Rudie,

    To get the description in a popup/dialog window you will have to use my eLayerList widget and not the default esri layerList widget.

http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18

As far as positioning widgets at a specific location you can set the left, right, top, and bottom attributes of any widget as covered in the docs. Look for "Attributes for widget position" in the link below:

http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m30000001w000000.htm
0 Kudos
RudieWatzig
Regular Contributor
Rudie,

    To get the description in a popup/dialog window you will have to use my eLayerList widget and not the default esri layerList widget.

http://www.arcgis.com/home/item.html?id=58d9bb5693c94918a3934781d7234d18

As far as positioning widgets at a specific location you can set the left, right, top, and bottom attributes of any widget as covered in the docs. Look for "Attributes for widget position" in the link below:

http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m30000001w000000.htm


Robert, thank you for your help.  This widget is great.

I was hoping I could modify the map switcher widget itself, but I don't know enough FLEX to do so.  I think it's located here:

  private function descriptionOrDownloadLabel_clickHandler(event:MouseEvent):void
            {
                var url:String;
                if (_layer is OpenStreetMapLayer)
                {
                    url = "http://www.openstreetmap.org";
                }
                else if (_layer.hasOwnProperty("url"))
                {
                    url = Object(_layer).url;
                    if (_layer is WMSLayer)
                    {
                        url += "?SERVICE=WMS&REQUEST=GetCapabilities";
                    }
                }
                if (url)
                {
                    var request:URLRequest = new URLRequest(url);
                    navigateToURL(request, _layer.id);
                }
            }

Thanks again!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rudie,

   Yep that is the correct function from the esri MapSwitcher widget.
0 Kudos
RudieWatzig
Regular Contributor
Is there a way in the XML to have the size of this widget to default to a larger size?

Rudie
DOGAMI
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rudie,

    Sure all widget have a width an height attribute.

Doc (General attributes - width and Height):

http://resources.arcgis.com/en/help/flex-viewer/concepts/01m3/01m30000001w000000.htm
0 Kudos