ArcGIS viewer for flex ex 0.1 (viewer ex) makes a small change to ArcGIS viewer for flex 2.5, making it easy and configurable to open another widget. The usage is as follows:
1. Download ArcGIS viewer for flex ex 0.1;
2. The configuration file sets the ID and inmenu attributes for the widgets to be opened by other widgets. If no ID is set,ProgramIDs are automatically assigned. inmenu indicates whether the widget is displayed in the menu. False indicates that the widget is not displayed. The default value is true, as shown below:
< Widget ID = "101" Inmenu = "False" Label = "Draw And Measure" Left = "60" Top = "400" Icon = "Assets/images/I _draw2.png" Config = "Widgets/draw/drawwidget. xml" URL="Widgets/draw/drawwidget.swf"/> |
3. In the widget configuration file where other widgets need to be opened, configure the ID of the widget to be opened, as shown below:
<Configuration> <Content>Hello world!</Content> <Drawandmeasurewidgetid>101</Drawandmeasurewidgetid> <Earthquakewidgetid>100</Earthquakewidgetid> </Configuration> |
4. Open the corresponding widget through the configured widget ID in the widget, as shown below:
PrivateFunctionOpenwidget (ID: number ):Void{ Appevent. Dispatch (appevent. widget_run, ID ); } |
: Http://download.csdn.net/detail/gispace/4180661