ArcGIS viewer for flex ex 0.1-open other widgets in widgets

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.