Select to view content in your preferred language

Export Map Widget

2332
37
10-19-2010 06:47 AM
deleted-user-RjoC4IOGTpoH
Deactivated User
Another great widget from Robert which is much appreciated.

I would like to fire off the widget from the toolbar instead of the current lower left position.
I edited the config.xml to place the widget in the toolbar but as expected, when you click on it the widget appears in the lower left and you have to click on it again to run it.

What code changes would be needed to just fire it from the toolbar?

Thanks again Robert.

Nestor.
Tags (2)
0 Kudos
37 Replies
RobertScheitlin__GISP
MVP Emeritus
Nestor,

   Because certain actions like bringing up dialogs have to be called directly from a user click and that does not fit in with the widget dispatching scheme, what you are asking for is not possible. That is why the widget is built the way that it is.
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
Thanks for the reply Robert.

Still a great application and much appreciated.

Nestor.
0 Kudos
LeeAllen
Frequent Contributor
I have done this, although it is not technically part of the toolbar, it looks like it.

Added the widget to the UI elements (along with the full screen widget) so it is there when it opens and works with one click.

code:

<widget right="150" top="5" config="widgets/FullScreenWidget/FullScreenWidget.xml" url="widgets/FullScreenWidget/FullScreenWidget.swf"/>


<widget right="109" top="5" config="widgets/ExportMap/exportMap.xml" url="widgets/ExportMap/exportMap.swf"/>

see attached image.
0 Kudos
deleted-user-RjoC4IOGTpoH
Deactivated User
I have done this, although it is not technically part of the toolbar, it looks like it.

Added the widget to the UI elements (along with the full screen widget) so it is there when it opens and works with one click.

code:

<widget right="150" top="5" config="widgets/FullScreenWidget/FullScreenWidget.xml" url="widgets/FullScreenWidget/FullScreenWidget.swf"/>


<widget right="109" top="5" config="widgets/ExportMap/exportMap.xml" url="widgets/ExportMap/exportMap.swf"/>

see attached image.


Thanks Lee, that's a good workaround.

Nestor.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Andrea,

   Don't put it into a widget container. You need to put it at the top of the config file where it says
<!-- UI elements -->
like the NavigationWidget
0 Kudos
JeffLegato
Regular Contributor
Robert, Thanks so much for taking time to create and publish these widgets.  I got your eSearch widget working and am very grateful!  😄

Does this widget work with 2.2?  For some reason I can't get it to work and was wondering if it's because I'm on 2.2.

Thanks,

Jeff Legato
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

    I have not produced a FlexViewer 2.2 version for this widget yet. I will try to do it soon.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Jeff,

   Updated version 2.2 is now in the code gallery.
0 Kudos
JeffLegato
Regular Contributor
Jeff,

   Updated version 2.2 is now in the code gallery.


Robert,
Thanks so much again!  I owe you a beer!
0 Kudos